]> git.bitcoin.ninja Git - rust-lightning/commit
Refactor: Take `their_node_id` by value across all handler interfaces
authorElias Rohrer <dev@tnull.de>
Wed, 11 Sep 2024 14:06:44 +0000 (16:06 +0200)
committerElias Rohrer <dev@tnull.de>
Wed, 11 Sep 2024 17:19:38 +0000 (19:19 +0200)
commitb172942a75725f4a04861875563f9e02f7a0e2d1
tree2c7efd5a7cf7469324343a0cdc7f5a9616509b39
parentf68b8b68346e066bae9b22e53c7b72491d1c22c6
Refactor: Take `their_node_id` by value across all handler interfaces

In order to maintain interface consistency, we refactor all message
handler interfaces to take `PublicKey` rather than `&PublicKey`, as the
difference in efficiency should be negigible and the former is easier to
handle in binding languages.

Over time, we also want to move (no pun intended) towards all messaging
interfaces using move semantics, so dropping the reference for
`PublicKey` is the first step in this direction.
30 files changed:
fuzz/src/chanmon_consistency.rs
fuzz/src/onion_message.rs
lightning-background-processor/src/lib.rs
lightning-custom-message/src/lib.rs
lightning-net-tokio/src/lib.rs
lightning/src/chain/chainmonitor.rs
lightning/src/ln/async_signer_tests.rs
lightning/src/ln/blinded_payment_tests.rs
lightning/src/ln/bolt11_payment.rs
lightning/src/ln/chanmon_update_fail_tests.rs
lightning/src/ln/channelmanager.rs
lightning/src/ln/functional_test_utils.rs
lightning/src/ln/functional_tests.rs
lightning/src/ln/invoice_utils.rs
lightning/src/ln/max_payment_path_len_tests.rs
lightning/src/ln/monitor_tests.rs
lightning/src/ln/msgs.rs
lightning/src/ln/offers_tests.rs
lightning/src/ln/onion_route_tests.rs
lightning/src/ln/payment_tests.rs
lightning/src/ln/peer_handler.rs
lightning/src/ln/priv_short_conf_tests.rs
lightning/src/ln/reload_tests.rs
lightning/src/ln/reorg_tests.rs
lightning/src/ln/shutdown_tests.rs
lightning/src/onion_message/functional_tests.rs
lightning/src/onion_message/messenger.rs
lightning/src/routing/gossip.rs
lightning/src/routing/test_utils.rs
lightning/src/util/test_utils.rs