remove copypasta code
This commit is contained in:
parent
b3a247cfc1
commit
0002be1894
@ -19,20 +19,6 @@ Addresses.setNode = function(aNode) {
|
|||||||
* params
|
* params
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
|
||||||
* Finds a block by its hash
|
|
||||||
*/
|
|
||||||
Addresses.blockHashParam = function(req, res, next, blockHash) {
|
|
||||||
node.getBlock(blockHash)
|
|
||||||
.then(function(block) {
|
|
||||||
req.block = block;
|
|
||||||
})
|
|
||||||
.then(next)
|
|
||||||
.catch(BitcoreNode.errors.Addresses.NotFound, function() {
|
|
||||||
res.status(404).send('Block with id ' + blockHash + ' not found');
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Finds an address' info by it's string representation
|
* Finds an address' info by it's string representation
|
||||||
*/
|
*/
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user