]> git.bitcoin.ninja Git - rust-lightning/commit
Store `EntropySource` in `DefaultRouter` instead of passing it
authorMatt Corallo <git@bluematt.me>
Tue, 23 Jan 2024 19:49:36 +0000 (19:49 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 23 Jan 2024 19:50:48 +0000 (19:50 +0000)
commit48c484aa08a83575f0d551da3bf746f89051d8f4
treef151a512971b5ce109b996ac861db6ea9ec829cf
parentdee3b31ac5d50a03f3f6931e25263ef94414fa11
Store `EntropySource` in `DefaultRouter` instead of passing it

...as an arg to `Router`. Passing an `EntropySource` around all
the time is a bit strange as the `Router` may or may not actually
use it, and the `DefaultRouter` can just as easily store it.
lightning-background-processor/src/lib.rs
lightning/src/ln/channelmanager.rs
lightning/src/onion_message/functional_tests.rs
lightning/src/onion_message/messenger.rs
lightning/src/routing/router.rs
lightning/src/util/test_utils.rs