summaryrefslogtreecommitdiff
path: root/bip-0008.mediawiki
diff options
context:
space:
mode:
authorJake Rawsthorne <jake@jakerawsthorne.co.uk>2020-07-22 20:56:09 +0100
committerJake Rawsthorne <jake@jakerawsthorne.co.uk>2020-07-22 20:56:09 +0100
commitd6267eddb48f1edb5039efda59ad55eb6926a595 (patch)
tree84f6669846cb27c309a2fd32ad8e4541371d345f /bip-0008.mediawiki
parent5cc0c6fb498efdc35debc17c044ee9ccaa13f0ce (diff)
Fix pseudocode starting 1 block early
Diffstat (limited to 'bip-0008.mediawiki')
-rw-r--r--bip-0008.mediawiki2
1 files changed, 1 insertions, 1 deletions
diff --git a/bip-0008.mediawiki b/bip-0008.mediawiki
index a16c211..6fa8cea 100644
--- a/bip-0008.mediawiki
+++ b/bip-0008.mediawiki
@@ -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) {