ord icon indicating copy to clipboard operation
ord copied to clipboard

Show etched runes on /block

Open casey opened this issue 11 months ago • 4 comments

Should be easy, since rune IDs start with the block ID

casey avatar Mar 23 '24 19:03 casey

I dont know how to query by comparing IDs with the block ID. What method is used to query in redb?

lugondev avatar Mar 25 '24 06:03 lugondev

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}.

casey avatar Mar 25 '24 06:03 casey

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.

lugondev avatar Mar 25 '24 06:03 lugondev

Let's me resolve this issue!

lugondev avatar Mar 25 '24 07:03 lugondev

released as part of v0.18.2

cryptoni9n avatar Apr 26 '24 16:04 cryptoni9n