ord
ord copied to clipboard
Show etched runes on /block
Should be easy, since rune IDs start with the block ID
I dont know how to query by comparing IDs with the block ID. What method is used to query in redb?
You'll need to query RUNE_ID_TO_RUNE_ENTRY
for a range, like this: RuneId{ block: BLOCK_NUMBER, tx: 0}..RuneId{block: BLOCK_NUMBER + 1, tx: u32::MAX}
.
Instead use RuneId{ block: BLOCK_NUMBER, tx: 0}..RuneId{block: BLOCK_NUMBER + 1, tx: u32::MAX}
I use:
let rune_min = RuneId {
block: block_height,
tx: 0,
};
let rune_max = RuneId {
block: block_height,
tx: total_txs_in_block as u32,
};
but it's failed. I will retry.
Let's me resolve this issue!
released as part of v0.18.2