remove logs
This commit is contained in:
parent
e39fb861ac
commit
76af2d1314
@ -50,8 +50,6 @@ BitcoreNode.prototype.start = function() {
|
|||||||
|
|
||||||
BitcoreNode.prototype.sync = function() {
|
BitcoreNode.prototype.sync = function() {
|
||||||
var genesis = bitcore.Networks.defaultNetwork.genesis;
|
var genesis = bitcore.Networks.defaultNetwork.genesis;
|
||||||
console.log(bitcore.Networks.defaultNetwork.name);
|
|
||||||
console.log(genesis);
|
|
||||||
var self = this;
|
var self = this;
|
||||||
this.nm.on('ready', function() {
|
this.nm.on('ready', function() {
|
||||||
console.log('ready');
|
console.log('ready');
|
||||||
|
|||||||
@ -89,7 +89,7 @@ BlockService.prototype.unlock = function() {
|
|||||||
* @param {Number} blockData.time a 32 bit number with the timestamp when this block was created
|
* @param {Number} blockData.time a 32 bit number with the timestamp when this block was created
|
||||||
* @param {Number} blockData.nonce a 32 bit number with a random number
|
* @param {Number} blockData.nonce a 32 bit number with a random number
|
||||||
* @param {string} blockData.bits a 32 bit "varint" encoded number with the length of the block
|
* @param {string} blockData.bits a 32 bit "varint" encoded number with the length of the block
|
||||||
* @param {string} blockData.merkleRoot an hex string of length 64 with the hash of the block
|
* @param {string} blockData.merkleroot an hex string of length 64 with the hash of the block
|
||||||
* @param {Array} transactions an array of bitcore.Transaction objects, in the order that forms the
|
* @param {Array} transactions an array of bitcore.Transaction objects, in the order that forms the
|
||||||
* merkle root hash
|
* merkle root hash
|
||||||
* @return {bitcore.Block}
|
* @return {bitcore.Block}
|
||||||
@ -113,6 +113,7 @@ BlockService.blockRPCtoBitcore = function(blockData) {
|
|||||||
new bitcore.deps.Buffer(blockData.merkleroot, 'hex')
|
new bitcore.deps.Buffer(blockData.merkleroot, 'hex')
|
||||||
)
|
)
|
||||||
}),
|
}),
|
||||||
|
transactions: blockData.transaction
|
||||||
});
|
});
|
||||||
block.height = blockData.height;
|
block.height = blockData.height;
|
||||||
return block;
|
return block;
|
||||||
@ -212,11 +213,8 @@ BlockService.prototype.getLatest = function() {
|
|||||||
|
|
||||||
return self.getBlock(blockHash);
|
return self.getBlock(blockHash);
|
||||||
|
|
||||||
}).catch(function(err) {
|
}).catch(LevelUp.errors.NotFoundError, function() {
|
||||||
if (err instanceof LevelUp.errors.NotFoundError) {
|
return null;
|
||||||
return null;
|
|
||||||
}
|
|
||||||
throw err;
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user