Unrelated to this PR, but I noticed `tx_from_value` (and `block_from_value`) could probably be improved by using rust bitcoin `deserialize_hex` which doesn't allocate the intermediate vector of bytes.
Just noticed the rust bitcoin version we are currently using doesn't have that yet, leaving this here anyway if we want to upgrade in the future.
Just noticed the rust bitcoin version we are currently using doesn't have that yet, leaving this here anyway if we want to upgrade in the future.
_Originally posted by @RCasatta in https://github.com/Blockstream/electrs/pull/89#discussion_r1632832747_