Blockstream / electrs

An efficient re-implementation of Electrum Server in Rust
MIT License
301 stars 125 forks source link

Use rust bitcoin `deserialize_hex` when upgrading version #94

Open RCasatta opened 1 month ago

RCasatta commented 1 month ago
          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.

_Originally posted by @RCasatta in https://github.com/Blockstream/electrs/pull/89#discussion_r1632832747_