Printing DB URLs
This commit is contained in:
parent
63971e2cf2
commit
6614a068d4
|
@ -34,7 +34,7 @@ class App extends React.Component {
|
|||
// The merkle proof function uses a bytes32 hash, so you need to use hashedCode
|
||||
// TODO: if result is false, show error or something because the code is invalid or has been used
|
||||
// TODO: if result is true the code hasn't been processed. Proceed to verify if the background service will process that transaction
|
||||
// TODO: use orbit db, check if exist a value in a keyvalue store `status-hackathon-fund-requests`
|
||||
// TODO: use orbit db, check if exist a value in a keyvalue store `status-hackathon-fund-requests` Address of db can be seen by executing node server/main.js
|
||||
// the key to use is the code
|
||||
// TODO: if a value exists, the background service will process this code, show a message indicating that transaction is being processed
|
||||
// TODO: if it doesnt,
|
||||
|
|
|
@ -41,8 +41,11 @@ ipfs.on('ready', async () => {
|
|||
|
||||
const start = async () => {
|
||||
console.log("Connecting to data stores...");
|
||||
const transactionStore = await orbitdb.keyvalue('rramos-transactions-adadasdasd');
|
||||
const fundRequestStore = await orbitdb.log('rramos-funds-requests-adadasdasd');
|
||||
const transactionStore = await orbitdb.keyvalue('status-hackathon-transactions');
|
||||
console.log("status-hackathon-transactions: " + transactionStore.address.toString());
|
||||
|
||||
const fundRequestStore = await orbitdb.log('status-hackathon-fund-requests');
|
||||
console.log("status-hackathon-fund-requests: " + fundRequestStore.address.toString());
|
||||
|
||||
let lastCodeProcessed;
|
||||
|
||||
|
@ -88,7 +91,7 @@ const start = async () => {
|
|||
});
|
||||
|
||||
// Wait for all promises to be resolved
|
||||
Promise.all(results).then((completed) => {
|
||||
Promise.all(all).then((completed) => {
|
||||
running = false;
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue