]> git.bitcoin.ninja Git - rust-lightning/commit
Avoid allocating when checking gossip message signatures
authorMatt Corallo <git@bluematt.me>
Sat, 4 Nov 2023 22:09:44 +0000 (22:09 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 9 Nov 2023 22:28:08 +0000 (22:28 +0000)
commita8d4cfa811e3472457bb874f24fae7175520c062
tree61ed9d5605785aec0f68cc99a0f9d15f078e4e23
parent18dc7f248bc5c323477920f3168e606151d867e2
Avoid allocating when checking gossip message signatures

When we check gossip message signatures, there's no reason to
serialize out the full gossip message before hashing, and it
generates a lot of allocations during the initial startup when we
fetch the full gossip from peers.
lightning/src/routing/gossip.rs