summaryrefslogtreecommitdiff
path: root/bip-0300.mediawiki
diff options
context:
space:
mode:
authorLuke Dashjr <luke-jr+git@utopios.org>2023-07-26 19:59:11 +0000
committerLuke Dashjr <luke-jr+git@utopios.org>2023-07-26 19:59:11 +0000
commitaccaee0f33c9f8cb80dd74f8c024f01fd4c02de5 (patch)
tree379fe04c2b55434fb335067e4e0f01aa5adc7a93 /bip-0300.mediawiki
parent9d4ec80215727779142862d023c5d253ed3a997b (diff)
bip-0300: Define endianness of upvote vector
Diffstat (limited to 'bip-0300.mediawiki')
-rw-r--r--bip-0300.mediawiki2
1 files changed, 1 insertions, 1 deletions
diff --git a/bip-0300.mediawiki b/bip-0300.mediawiki
index 0f2ef6e..a265374 100644
--- a/bip-0300.mediawiki
+++ b/bip-0300.mediawiki
@@ -290,7 +290,7 @@ For example: if there are two sidechains, and we wish to upvote the 7th bundle o
The version number allows us to shrink the upvote vector in many cases.
Version 0x00 omits the upvote vector entirely (ie, 6 bytes for the whole M4) and sets this block's M4 equal to the previous block's M4.
Version 0x01 uses one byte per sidechain, and can be used while all ACKed withdrawals have an index under 256 (ie, 99.99%+ of the time).
-Version 0x02 uses a full two bytes per sidechain, but it always works no matter how many withdrawl proposals exist.
+Version 0x02 uses a full two bytes per sidechain (each encoded in little endian), but it always works no matter how many withdrawl proposals exist.
Version 0x03 omits the upvote vector, and instead upvotes only those withdrawals that are leading their rivals by at least 50 votes.
If a sidechain has no pending bundles, then it is skipped over when M4 is created and parsed.