1
0
Fork 0
mirror of https://github.com/bitcoin/bips.git synced 2025-03-13 19:16:49 +01:00

Fix pseudocode starting 1 block early

This commit is contained in:
Jake Rawsthorne 2020-07-22 20:56:09 +01:00
parent 5cc0c6fb49
commit d6267eddb4

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