fix spv again.

This commit is contained in:
Christopher Jeffrey 2016-05-09 09:29:50 -07:00
parent 4700990bcd
commit d5c9c31534
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -525,7 +525,7 @@ Chain.prototype._verify = function _verify(block, prev, callback) {
// Can't verify any further when merkleblock or headers.
if (self.options.spv)
return callback(null, state.flags);
return callback(null, state);
// Make sure the height contained in the coinbase is correct.
if (state.coinbaseHeight) {