mirror of
https://github.com/bitcoin/bips.git
synced 2025-05-12 12:03:29 +00: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:
|
case STARTED:
|
||||||
int count = 0;
|
int count = 0;
|
||||||
walk = block.parent;
|
walk = block;
|
||||||
for (i = 0; i < 2016; i++) {
|
for (i = 0; i < 2016; i++) {
|
||||||
walk = walk.parent;
|
walk = walk.parent;
|
||||||
if (walk.nVersion & 0xE0000000 == 0x20000000 && (walk.nVersion >> bit) & 1 == 1) {
|
if (walk.nVersion & 0xE0000000 == 0x20000000 && (walk.nVersion >> bit) & 1 == 1) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user