diff --git a/config/livenet.yml b/config/livenet.yml new file mode 100644 index 00000000..48ddb954 --- /dev/null +++ b/config/livenet.yml @@ -0,0 +1,16 @@ +BitcoreNode: + LevelUp: ./db + network: livenet + NetworkMonitor: + host: localhost + port: 8333 +Reporter: none # none, simple, matrix +BitcoreHTTP: + host: localhost + port: 8080 +RPC: + user: user + pass: password + protocol: http + host: 127.0.0.1 + port: 8332 diff --git a/test/services/block.js b/test/services/block.js index b204d0cb..a329113b 100644 --- a/test/services/block.js +++ b/test/services/block.js @@ -116,6 +116,10 @@ describe('BlockService', function() { it('makes the expected calls when confirming the genesis block', function(callback) { database.batchAsync = function(ops) { var expectedOps = [{ + type: 'put', + key: 'header-000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f', + value: '{"version":1,"prevHash":"0000000000000000000000000000000000000000000000000000000000000000","merkleRoot":"3ba3edfd7a7b12b27ac72c3e67768f617fc81bc3888a51323a9fb8aa4b1e5e4a","time":1231006505,"bits":486604799,"nonce":2083236893}' + }, { type: 'put', key: 'nxt-0000000000000000000000000000000000000000000000000000000000000000', value: '000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f' @@ -146,6 +150,10 @@ describe('BlockService', function() { it('makes the expected calls when confirming the block #170', function(callback) { database.batchAsync = function(ops) { ops.should.deep.equal([{ + type: 'put', + key: 'header-00000000d1145790a8694403d4063f323d499e655c83426834d4ce2f8dd4a2ee', + value: '{"version":1,"prevHash":"55bd840a78798ad0da853f68974f3d183e2bd1db6a842c1feecf222a00000000","merkleRoot":"ff104ccb05421ab93e63f8c3ce5c2c2e9dbb37de2764b3a3175c8166562cac7d","time":1231731025,"bits":486604799,"nonce":1889418792}' + }, { type: 'put', key: 'nxt-000000002a22cfee1f2c846adbd12b3e183d4f97683f85dad08a79780a84bd55', value: '00000000d1145790a8694403d4063f323d499e655c83426834d4ce2f8dd4a2ee'