1
0
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:
Luke Dashjr 2020-08-01 02:28:38 +00:00 committed by GitHub
commit c134a853a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {