@@ -737,19 +737,21 @@ impl<G: Deref<Target = NetworkGraph>> Score for ProbabilisticScorer<G> {
737
737
impl < G : Deref < Target = NetworkGraph > > Writeable for ProbabilisticScorer < G > {
738
738
#[ inline]
739
739
fn write < W : Writer > ( & self , w : & mut W ) -> Result < ( ) , io:: Error > {
740
- self . params . write ( w) ?;
741
740
self . channel_liquidities . write ( w) ?;
742
741
write_tlv_fields ! ( w, { } ) ;
743
742
Ok ( ( ) )
744
743
}
745
744
}
746
745
747
- impl < G : Deref < Target = NetworkGraph > > ReadableArgs < ( & PublicKey , G ) > for ProbabilisticScorer < G > {
746
+ impl < G : Deref < Target = NetworkGraph > > ReadableArgs < ( ProbabilisticScoringParameters , & PublicKey , G ) >
747
+ for ProbabilisticScorer < G > {
748
748
#[ inline]
749
- fn read < R : Read > ( r : & mut R , args : ( & PublicKey , G ) ) -> Result < Self , DecodeError > {
750
- let ( node_pubkey, network_graph) = args;
749
+ fn read < R : Read > (
750
+ r : & mut R , args : ( ProbabilisticScoringParameters , & PublicKey , G )
751
+ ) -> Result < Self , DecodeError > {
752
+ let ( params, node_pubkey, network_graph) = args;
751
753
let res = Ok ( Self {
752
- params : Readable :: read ( r ) ? ,
754
+ params,
753
755
node_id : NodeId :: from_pubkey ( node_pubkey) ,
754
756
network_graph,
755
757
channel_liquidities : Readable :: read ( r) ?,
0 commit comments