Merge branch 'develop' of gitlab.com:deca-currency/carboncreditsbacklog into develop
This commit is contained in:
commit
eb366f1157
|
@ -1,5 +1,6 @@
|
|||
/node_modules
|
||||
/orbitdb
|
||||
/receipts
|
||||
/proyectsReceipts
|
||||
package-lock.json
|
||||
.env
|
||||
|
|
2
index.js
2
index.js
|
@ -3,7 +3,7 @@ const IpfsClient = require('ipfs-http-client');
|
|||
const OrbitDB = require('orbit-db');
|
||||
//Instance of ipfs locally in ipfs daemon
|
||||
const node = IpfsClient('http://localhost:5001');
|
||||
const addressDB = 'decaCCDB';
|
||||
const addressDB = '/orbitdb/zdpuAykPJ4qtBg2toS2vxr5eaPfGEBJmvGerM7V7x8qn5c8hW/decaCCDB';
|
||||
|
||||
//Async function to replicate or create a doc database
|
||||
async function createReplicate() {
|
||||
|
|
|
@ -7,7 +7,7 @@ let hasher = require('node-object-hash')
|
|||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
|
||||
const addressDB = 'decaCCDB';
|
||||
const addressDB = '/orbitdb/zdpuAykPJ4qtBg2toS2vxr5eaPfGEBJmvGerM7V7x8qn5c8hW/decaCCDB';
|
||||
|
||||
//A instance of ipfs locally in ipfs daemon
|
||||
const ipfs = IpfsClient('http://localhost:5001');
|
||||
|
|
|
@ -21,7 +21,7 @@ case "$choice" in
|
|||
*) echo "no option selected";;
|
||||
esac
|
||||
|
||||
receiptsRoute=./receipts
|
||||
receiptsRoute=./proyectsReceipts
|
||||
echo ""
|
||||
echo "IPFS GET(Download) DECA's Carbon Credits Receipts?:"
|
||||
|
||||
|
@ -40,3 +40,4 @@ case "$choice" in
|
|||
esac
|
||||
|
||||
echo "Bye ;) $USERNAME"
|
||||
|
||||
|
|
Loading…
Reference in New Issue