Merge pull request #949 from jrawsthorne/bip8-pseudocode-fix

BIP8: Fix pseudocode starting 1 block early
This commit is contained in:
Luke Dashjr authored and GitHub committed 2020-08-01 02:28:38 +00:00
commit c134a853a9
1 file changed
+1 -1
+1 -1
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) {