]> git.bitcoin.ninja Git - rust-lightning/commit
Use OnionMessenger::send_onion_message in tests
authorJeffrey Czyz <jkczyz@gmail.com>
Tue, 19 Mar 2024 22:04:01 +0000 (17:04 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Tue, 19 Mar 2024 22:45:10 +0000 (17:45 -0500)
commit806fef5848e540b8b30ba0c374d6120942cb41c5
treebc1eeec3b676d5b93d050e7e58bcd844cf7d6d4f
parentad3de23666383a5d11c011b62899ca663f21ce5f
Use OnionMessenger::send_onion_message in tests

Use OnionMessenger's public interface in tests whenever possible (i.e.,
when not using any intermediate_nodes in an OnionMessagePath. This
allows us to exercise DefaultMessageRouter, and, in particular that a
path can be found for an unannounced sender when its in the introduction
node.
lightning/src/onion_message/functional_tests.rs