wip
This commit is contained in:
parent
f452d63d75
commit
67517be6d4
@ -132,9 +132,13 @@ describe('DB Operations', function() {
|
|||||||
|
|
||||||
req.on('end', function() {
|
req.on('end', function() {
|
||||||
var body = JSON.parse(data);
|
var body = JSON.parse(data);
|
||||||
//console.log('request', body);
|
if (debug) {
|
||||||
|
console.log('request', body);
|
||||||
|
}
|
||||||
var response = JSON.stringify({ result: responses[responseCount++] });
|
var response = JSON.stringify({ result: responses[responseCount++] });
|
||||||
//console.log('response', response, 'id: ', body.id);
|
if (debug) {
|
||||||
|
console.log('response', response, 'id: ', body.id);
|
||||||
|
}
|
||||||
res.write(response);
|
res.write(response);
|
||||||
res.end();
|
res.end();
|
||||||
});
|
});
|
||||||
@ -204,7 +208,7 @@ function publishBlockHash(blockHash, callback) {
|
|||||||
return callback(err);
|
return callback(err);
|
||||||
}
|
}
|
||||||
|
|
||||||
blockHash.should.equal(JSON.parse(res).hash);
|
blockHash.should.equal(JSON.parse(res).dbhash);
|
||||||
callback();
|
callback();
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|||||||
@ -24,6 +24,7 @@ var rpcConfig = {
|
|||||||
var bitcoin = {
|
var bitcoin = {
|
||||||
args: {
|
args: {
|
||||||
datadir: bitcoinDataDir,
|
datadir: bitcoinDataDir,
|
||||||
|
txindex: 1,
|
||||||
listen: 0,
|
listen: 0,
|
||||||
regtest: 1,
|
regtest: 1,
|
||||||
server: 1,
|
server: 1,
|
||||||
@ -192,7 +193,13 @@ describe('Wallet Operations', function() {
|
|||||||
|
|
||||||
it('should get list of transactions', function(done) {
|
it('should get list of transactions', function(done) {
|
||||||
|
|
||||||
utils.getListOfTxs.call(utils, self.opts, done);
|
utils.waitForBitcoreNode(self.opts, function(err) {
|
||||||
|
|
||||||
|
if(err) {
|
||||||
|
return done(err);
|
||||||
|
}
|
||||||
|
utils.getListOfTxs.call(utils, self.opts, done);
|
||||||
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user