remove logs

This commit is contained in:
Manuel Araoz 2015-03-20 13:32:11 -03:00
parent e39fb861ac
commit 76af2d1314
2 changed files with 4 additions and 8 deletions

View File

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

View File

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