]> git.bitcoin.ninja Git - rust-lightning/commit
Write `ChannelId`s out as hex in `Debug` output
authorMatt Corallo <git@bluematt.me>
Mon, 9 Sep 2024 15:30:54 +0000 (15:30 +0000)
committerMatt Corallo <git@bluematt.me>
Mon, 9 Sep 2024 15:32:08 +0000 (15:32 +0000)
commitcc6e2a0f7af60b0809dd9ff849bd3a41d3a78d3f
tree0533ecdb5980d9b2c2c5bf6d7ab3ffcf2c347e15
parent91a60c82567d95e982adab4e19e8df5666b41904
Write `ChannelId`s out as hex in `Debug` output

`ChannelId`s are almost always referenced as hex, so having debug
output print the raw bytes is somewhat annoying. Instead, we should
dump them as hex the same way we do for `Display`.

This uses the `hex_conservative` `impl_fmt_macros` which does all
the work for us, like we use for `lightning_types`.
lightning/src/ln/types.rs