diff --git a/app/js/index.js b/app/js/index.js index 16adb27..ebe25bb 100644 --- a/app/js/index.js +++ b/app/js/index.js @@ -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, diff --git a/server/main.js b/server/main.js index 30d4a79..f8838f1 100644 --- a/server/main.js +++ b/server/main.js @@ -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; });