more accurate ComputeBlockVersion.
This commit is contained in:
parent
a09c7365aa
commit
71934a22f1
@ -2315,9 +2315,6 @@ Chain.prototype.computeBlockVersion = function computeBlockVersion(prev, callbac
|
|||||||
if (err)
|
if (err)
|
||||||
return callback(err);
|
return callback(err);
|
||||||
|
|
||||||
if (version === 0)
|
|
||||||
return callback(null, constants.versionbits.LAST_OLD_BLOCK_VERSION);
|
|
||||||
|
|
||||||
version |= constants.versionbits.TOP_BITS;
|
version |= constants.versionbits.TOP_BITS;
|
||||||
version >>>= 0;
|
version >>>= 0;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user