Skip to content

Commit c134a85

Browse files
authored
Merge pull request bitcoin#949 from jrawsthorne/bip8-pseudocode-fix
BIP8: Fix pseudocode starting 1 block early
2 parents d1eec05 + d6267ed commit c134a85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bip-0008.mediawiki

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ Note that a block's state never depends on its own nVersion; only on that of its
127127
128128
case STARTED:
129129
int count = 0;
130-
walk = block.parent;
130+
walk = block;
131131
for (i = 0; i < 2016; i++) {
132132
walk = walk.parent;
133133
if (walk.nVersion & 0xE0000000 == 0x20000000 && (walk.nVersion >> bit) & 1 == 1) {

0 commit comments

Comments
 (0)