@@ -817,7 +817,7 @@ impl Wallet {
817817 . filter_chain_unspents (
818818 & self . chain ,
819819 self . chain . tip ( ) . block_id ( ) ,
820- CanonicalizationParams :: NONE ,
820+ CanonicalizationParams :: default ( ) ,
821821 self . indexed_graph . index . outpoints ( ) . iter ( ) . cloned ( ) ,
822822 )
823823 . map ( |( ( k, i) , full_txo) | new_local_utxo ( k, i, full_txo) )
@@ -832,7 +832,7 @@ impl Wallet {
832832 . filter_chain_txouts (
833833 & self . chain ,
834834 self . chain . tip ( ) . block_id ( ) ,
835- CanonicalizationParams :: NONE ,
835+ CanonicalizationParams :: default ( ) ,
836836 self . indexed_graph . index . outpoints ( ) . iter ( ) . cloned ( ) ,
837837 )
838838 . map ( |( ( k, i) , full_txo) | new_local_utxo ( k, i, full_txo) )
@@ -886,7 +886,7 @@ impl Wallet {
886886 . filter_chain_unspents (
887887 & self . chain ,
888888 self . chain . tip ( ) . block_id ( ) ,
889- CanonicalizationParams :: NONE ,
889+ CanonicalizationParams :: default ( ) ,
890890 core:: iter:: once ( ( ( ) , op) ) ,
891891 )
892892 . map ( |( _, full_txo) | new_local_utxo ( keychain, index, full_txo) )
@@ -1065,7 +1065,7 @@ impl Wallet {
10651065 . list_canonical_txs (
10661066 & self . chain ,
10671067 self . chain . tip ( ) . block_id ( ) ,
1068- CanonicalizationParams :: NONE ,
1068+ CanonicalizationParams :: default ( ) ,
10691069 )
10701070 . find ( |tx| tx. tx_node . txid == txid)
10711071 }
@@ -1088,7 +1088,7 @@ impl Wallet {
10881088 . list_canonical_txs (
10891089 & self . chain ,
10901090 self . chain . tip ( ) . block_id ( ) ,
1091- CanonicalizationParams :: NONE ,
1091+ CanonicalizationParams :: default ( ) ,
10921092 )
10931093 . filter ( |c_tx| tx_index. is_tx_relevant ( & c_tx. tx_node . tx ) )
10941094 }
@@ -1124,7 +1124,7 @@ impl Wallet {
11241124 self . indexed_graph . graph ( ) . balance (
11251125 & self . chain ,
11261126 self . chain . tip ( ) . block_id ( ) ,
1127- CanonicalizationParams :: NONE ,
1127+ CanonicalizationParams :: default ( ) ,
11281128 self . indexed_graph . index . outpoints ( ) . iter ( ) . cloned ( ) ,
11291129 |& ( k, _) , _| k == KeychainKind :: Internal ,
11301130 )
@@ -1595,7 +1595,7 @@ impl Wallet {
15951595 let txout_index = & self . indexed_graph . index ;
15961596 let chain_tip = self . chain . tip ( ) . block_id ( ) ;
15971597 let chain_positions = graph
1598- . list_canonical_txs ( & self . chain , chain_tip, CanonicalizationParams :: NONE )
1598+ . list_canonical_txs ( & self . chain , chain_tip, CanonicalizationParams :: default ( ) )
15991599 . map ( |canon_tx| ( canon_tx. tx_node . txid , canon_tx. chain_position ) )
16001600 . collect :: < HashMap < Txid , _ > > ( ) ;
16011601
@@ -1852,7 +1852,7 @@ impl Wallet {
18521852 let confirmation_heights = self
18531853 . indexed_graph
18541854 . graph ( )
1855- . list_canonical_txs ( & self . chain , chain_tip, CanonicalizationParams :: NONE )
1855+ . list_canonical_txs ( & self . chain , chain_tip, CanonicalizationParams :: default ( ) )
18561856 . filter ( |canon_tx| prev_txids. contains ( & canon_tx. tx_node . txid ) )
18571857 // This is for a small performance gain. Although `.filter` filters out excess txs, it
18581858 // will still consume the internal `CanonicalIter` entirely. Having a `.take` here
0 commit comments