rpc: fix findFork.
This commit is contained in:
parent
242fbd0a59
commit
cfee08d58e
@ -986,6 +986,12 @@ RPC.prototype.getchaintips = function getchaintips(args, callback) {
|
||||
|
||||
RPC.prototype._findFork = function _findFork(entry, callback) {
|
||||
(function next(err, entry) {
|
||||
if (err)
|
||||
return callback(err);
|
||||
|
||||
if (!entry)
|
||||
return callback(new Error('Fork not found.'));
|
||||
|
||||
entry.isMainChain(function(err, main) {
|
||||
if (err)
|
||||
return callback(err);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user