State RFC: Use escaped concatenation operator

And use BE32 consistently
This commit is contained in:
teor 2020-10-27 20:50:29 +10:00 committed by GitHub
parent adbdb3c76e
commit b4ce442cea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -600,7 +600,7 @@ We use the following Sled trees:
| `hash_by_height` | `BE32(height)` | `block::Hash` |
| `height_by_hash` | `block::Hash` | `BE32(height)` |
| `block_by_height` | `BE32(height)` | `Block` |
| `tx_by_hash` | `transaction::Hash` | `(BE32(height), BE32(tx_index))` |
| `tx_by_hash` | `transaction::Hash` | `(BE32(height) \|\| BE32(tx_index))`|
| `utxo_by_outpoint` | `OutPoint` | `TransparentOutput` |
| `sprout_nullifiers` | `sprout::Nullifier` | `()` |
| `sapling_nullifiers` | `sapling::Nullifier` | `()` |
@ -672,7 +672,7 @@ check that `block`'s parent hash is `null` (all zeroes) and its height is `0`.
5. Iterate over the enumerated transactions in the block. For each transaction:
1. Insert `(transaction_hash, block_height || BE32(tx_index))` to
1. Insert `(transaction_hash, BE32(block_height) || BE32(tx_index))` to
`tx_by_hash`;
2. For each `TransparentInput::PrevOut { outpoint, .. }` in the