@@ -94,7 +94,7 @@ use crate::collections::*;
9494use crate :: BlockId ;
9595use crate :: CanonicalIter ;
9696use crate :: CanonicalReason ;
97- use crate :: CanonicalizationMods ;
97+ use crate :: CanonicalizationParams ;
9898use crate :: ObservedIn ;
9999use crate :: { Anchor , Balance , ChainOracle , ChainPosition , FullTxOut , Merge } ;
100100use alloc:: collections:: vec_deque:: VecDeque ;
@@ -830,7 +830,7 @@ impl<A: Anchor> TxGraph<A> {
830830 & ' a self ,
831831 chain : & ' a C ,
832832 chain_tip : BlockId ,
833- mods : CanonicalizationMods ,
833+ mods : CanonicalizationParams ,
834834 ) -> impl Iterator < Item = Result < CanonicalTx < ' a , Arc < Transaction > , A > , C :: Error > > {
835835 fn find_direct_anchor < A : Anchor , C : ChainOracle > (
836836 tx_node : & TxNode < ' _ , Arc < Transaction > , A > ,
@@ -908,7 +908,7 @@ impl<A: Anchor> TxGraph<A> {
908908 & ' a self ,
909909 chain : & ' a C ,
910910 chain_tip : BlockId ,
911- mods : CanonicalizationMods ,
911+ mods : CanonicalizationParams ,
912912 ) -> impl Iterator < Item = CanonicalTx < ' a , Arc < Transaction > , A > > {
913913 self . try_list_canonical_txs ( chain, chain_tip, mods)
914914 . map ( |res| res. expect ( "infallible" ) )
@@ -937,7 +937,7 @@ impl<A: Anchor> TxGraph<A> {
937937 & ' a self ,
938938 chain : & ' a C ,
939939 chain_tip : BlockId ,
940- mods : CanonicalizationMods ,
940+ mods : CanonicalizationParams ,
941941 outpoints : impl IntoIterator < Item = ( OI , OutPoint ) > + ' a ,
942942 ) -> Result < impl Iterator < Item = ( OI , FullTxOut < A > ) > + ' a , C :: Error > {
943943 let mut canon_txs = HashMap :: < Txid , CanonicalTx < Arc < Transaction > , A > > :: new ( ) ;
@@ -1011,7 +1011,7 @@ impl<A: Anchor> TxGraph<A> {
10111011 & ' a self ,
10121012 chain : & ' a C ,
10131013 chain_tip : BlockId ,
1014- mods : CanonicalizationMods ,
1014+ mods : CanonicalizationParams ,
10151015 ) -> CanonicalIter < ' a , A , C > {
10161016 CanonicalIter :: new ( self , chain, chain_tip, mods)
10171017 }
@@ -1026,7 +1026,7 @@ impl<A: Anchor> TxGraph<A> {
10261026 & ' a self ,
10271027 chain : & ' a C ,
10281028 chain_tip : BlockId ,
1029- mods : CanonicalizationMods ,
1029+ mods : CanonicalizationParams ,
10301030 outpoints : impl IntoIterator < Item = ( OI , OutPoint ) > + ' a ,
10311031 ) -> impl Iterator < Item = ( OI , FullTxOut < A > ) > + ' a {
10321032 self . try_filter_chain_txouts ( chain, chain_tip, mods, outpoints)
@@ -1055,7 +1055,7 @@ impl<A: Anchor> TxGraph<A> {
10551055 & ' a self ,
10561056 chain : & ' a C ,
10571057 chain_tip : BlockId ,
1058- mods : CanonicalizationMods ,
1058+ mods : CanonicalizationParams ,
10591059 outpoints : impl IntoIterator < Item = ( OI , OutPoint ) > + ' a ,
10601060 ) -> Result < impl Iterator < Item = ( OI , FullTxOut < A > ) > + ' a , C :: Error > {
10611061 Ok ( self
@@ -1073,7 +1073,7 @@ impl<A: Anchor> TxGraph<A> {
10731073 & ' a self ,
10741074 chain : & ' a C ,
10751075 chain_tip : BlockId ,
1076- mods : CanonicalizationMods ,
1076+ mods : CanonicalizationParams ,
10771077 txouts : impl IntoIterator < Item = ( OI , OutPoint ) > + ' a ,
10781078 ) -> impl Iterator < Item = ( OI , FullTxOut < A > ) > + ' a {
10791079 self . try_filter_chain_unspents ( chain, chain_tip, mods, txouts)
@@ -1096,7 +1096,7 @@ impl<A: Anchor> TxGraph<A> {
10961096 & self ,
10971097 chain : & C ,
10981098 chain_tip : BlockId ,
1099- mods : CanonicalizationMods ,
1099+ mods : CanonicalizationParams ,
11001100 outpoints : impl IntoIterator < Item = ( OI , OutPoint ) > ,
11011101 mut trust_predicate : impl FnMut ( & OI , ScriptBuf ) -> bool ,
11021102 ) -> Result < Balance , C :: Error > {
@@ -1141,7 +1141,7 @@ impl<A: Anchor> TxGraph<A> {
11411141 & self ,
11421142 chain : & C ,
11431143 chain_tip : BlockId ,
1144- mods : CanonicalizationMods ,
1144+ mods : CanonicalizationParams ,
11451145 outpoints : impl IntoIterator < Item = ( OI , OutPoint ) > ,
11461146 trust_predicate : impl FnMut ( & OI , ScriptBuf ) -> bool ,
11471147 ) -> Balance {
0 commit comments