mirror of
https://github.com/bitcoin/bips.git
synced 2024-11-19 01:40:05 +01:00
Merge pull request #949 from jrawsthorne/bip8-pseudocode-fix
BIP8: Fix pseudocode starting 1 block early
This commit is contained in:
commit
c134a853a9
@ -127,7 +127,7 @@ Note that a block's state never depends on its own nVersion; only on that of its
|
||||
|
||||
case STARTED:
|
||||
int count = 0;
|
||||
walk = block.parent;
|
||||
walk = block;
|
||||
for (i = 0; i < 2016; i++) {
|
||||
walk = walk.parent;
|
||||
if (walk.nVersion & 0xE0000000 == 0x20000000 && (walk.nVersion >> bit) & 1 == 1) {
|
||||
|
Loading…
Reference in New Issue
Block a user