@@ -88,7 +88,7 @@ fn insert_txouts() {
8888
8989 // Make the update graph
9090 let update = {
91- let mut update = tx_graph:: Update :: default ( ) ;
91+ let mut update = tx_graph:: TxUpdate :: default ( ) ;
9292 for ( outpoint, txout) in & update_ops {
9393 // Insert partials transactions.
9494 update. txouts . insert ( * outpoint, txout. clone ( ) ) ;
@@ -1137,12 +1137,12 @@ fn call_map_anchors_with_non_deterministic_anchor() {
11371137 ) ;
11381138}
11391139
1140- /// Tests `From` impls for conversion between [`TxGraph`] and [`tx_graph::Update `].
1140+ /// Tests `From` impls for conversion between [`TxGraph`] and [`tx_graph::TxUpdate `].
11411141#[ test]
11421142fn tx_graph_update_conversion ( ) {
1143- use tx_graph:: Update ;
1143+ use tx_graph:: TxUpdate ;
11441144
1145- type TestCase = ( & ' static str , Update < ConfirmationBlockTime > ) ;
1145+ type TestCase = ( & ' static str , TxUpdate < ConfirmationBlockTime > ) ;
11461146
11471147 fn make_tx ( v : i32 ) -> Transaction {
11481148 Transaction {
@@ -1161,24 +1161,24 @@ fn tx_graph_update_conversion() {
11611161 }
11621162
11631163 let test_cases: & [ TestCase ] = & [
1164- ( "empty_update" , Update :: default ( ) ) ,
1164+ ( "empty_update" , TxUpdate :: default ( ) ) ,
11651165 (
11661166 "single_tx" ,
1167- Update {
1167+ TxUpdate {
11681168 txs : vec ! [ make_tx( 0 ) . into( ) ] ,
11691169 ..Default :: default ( )
11701170 } ,
11711171 ) ,
11721172 (
11731173 "two_txs" ,
1174- Update {
1174+ TxUpdate {
11751175 txs : vec ! [ make_tx( 0 ) . into( ) , make_tx( 1 ) . into( ) ] ,
11761176 ..Default :: default ( )
11771177 } ,
11781178 ) ,
11791179 (
11801180 "with_floating_txouts" ,
1181- Update {
1181+ TxUpdate {
11821182 txs : vec ! [ make_tx( 0 ) . into( ) , make_tx( 1 ) . into( ) ] ,
11831183 txouts : [
11841184 ( OutPoint :: new ( h ! ( "a" ) , 0 ) , make_txout ( 0 ) ) ,
@@ -1191,7 +1191,7 @@ fn tx_graph_update_conversion() {
11911191 ) ,
11921192 (
11931193 "with_anchors" ,
1194- Update {
1194+ TxUpdate {
11951195 txs : vec ! [ make_tx( 0 ) . into( ) , make_tx( 1 ) . into( ) ] ,
11961196 txouts : [
11971197 ( OutPoint :: new ( h ! ( "a" ) , 0 ) , make_txout ( 0 ) ) ,
@@ -1209,7 +1209,7 @@ fn tx_graph_update_conversion() {
12091209 ) ,
12101210 (
12111211 "with_seen_ats" ,
1212- Update {
1212+ TxUpdate {
12131213 txs : vec ! [ make_tx( 0 ) . into( ) , make_tx( 1 ) . into( ) ] ,
12141214 txouts : [
12151215 ( OutPoint :: new ( h ! ( "a" ) , 0 ) , make_txout ( 0 ) ) ,
@@ -1230,7 +1230,7 @@ fn tx_graph_update_conversion() {
12301230 for ( test_name, update) in test_cases {
12311231 let mut tx_graph = TxGraph :: < ConfirmationBlockTime > :: default ( ) ;
12321232 let _ = tx_graph. apply_update_at ( update. clone ( ) , None ) ;
1233- let update_from_tx_graph: Update < ConfirmationBlockTime > = tx_graph. into ( ) ;
1233+ let update_from_tx_graph: TxUpdate < ConfirmationBlockTime > = tx_graph. into ( ) ;
12341234
12351235 assert_eq ! (
12361236 update
0 commit comments