Printing DB URLs

This commit is contained in:
Richard Ramos 2018-10-03 10:24:43 -04:00
parent 63971e2cf2
commit 6614a068d4
2 changed files with 7 additions and 4 deletions

View File

@ -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,

View File

@ -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;
});