diff --git a/11_gossip_channel_graph.asciidoc b/11_gossip_channel_graph.asciidoc index a4c219f..98f03e2 100644 --- a/11_gossip_channel_graph.asciidoc +++ b/11_gossip_channel_graph.asciidoc @@ -372,7 +372,7 @@ The +scid+ is used in +channel_announcement+ (and +channel_update+) as well as w ((("blockchain","short channel ID")))Based on the preceding information, we have three pieces of information we need to encode to uniquely reference a given channel. Because we want a compact representation, we'll attempt to encode the information into a _single_ integer. Our integer format of choice is an unsigned 64-bit integer, comprised of 8 bytes. First, the block height. Using 3 bytes (24 bits) we can encode 16,777,216 blocks. That leaves 5 bytes for us to encode the transaction index and the output index, respectively. We'll use the next 3 -bytes to encode the transaction index _within_ a block. This is more than enough given that it's only possible to fix tens of thousands of transactions in a block at current block sizes. This leaves 2 bytes left for us to encode the output index of the channel within the transaction. +bytes to encode the transaction index _within_ a block. This is more than enough given that it's only possible to fit tens of thousands of transactions in a block at current block sizes. This leaves 2 bytes left for us to encode the output index of the channel within the transaction. Our final +scid+ format resembles: ----