]> git.bitcoin.ninja Git - rust-lightning/commit
Move Secp256k1 context to NetworkGraph
authorJeffrey Czyz <jkczyz@gmail.com>
Fri, 3 Jun 2022 04:37:59 +0000 (21:37 -0700)
committerJeffrey Czyz <jkczyz@gmail.com>
Fri, 3 Jun 2022 06:08:57 +0000 (23:08 -0700)
commit0f73d6adcf6fd141b19a95c32f47b27ddf2f8dd1
tree291c6a7fb561d4c134a3dbb2967821852bbfe8de
parent0017bc88a84fa7f253bede430fbb147f6e60c50b
Move Secp256k1 context to NetworkGraph

P2PGossipSync has a Secp256k1 context field, which it only uses to pass
to NetworkGraph methods. Move the field to NetworkGraph so other callers
don't need to pass in a Secp256k1 context.
lightning/src/routing/gossip.rs
lightning/src/routing/scoring.rs