]> git.bitcoin.ninja Git - rust-lightning/commit
Move UTXO-lookup into pub utility function from RoutingMsgHandler
authorMatt Corallo <git@bluematt.me>
Tue, 24 Nov 2020 17:40:11 +0000 (12:40 -0500)
committerMatt Corallo <git@bluematt.me>
Tue, 24 Nov 2020 19:00:02 +0000 (14:00 -0500)
commitd9c03f26f9d52ca96bc889eae64087a690ff1a22
tree19d5972074cd411e2dbb182100bfe3e7737b1a4a
parent9642356d9a2af94a5c6995cbe2dd9b1a3aa7dec3
Move UTXO-lookup into pub utility function from RoutingMsgHandler

This makes the public utility methods in `NetworkGraph` able to do
UTXO lookups ala `NetworkMsgHandler`'s `RoutingMessageHandler`
implementation, slightly simplifying the public interface.

We also take this opportunity to verify signatures before calling
out to UTXO lookups, under the "do actions in order of
cheapest-to-most-expensive to reduce DoS surface" principle.
fuzz/src/router.rs
lightning/src/routing/network_graph.rs