@@ -88,7 +88,7 @@ fn insert_txouts() {
88
88
89
89
// Make the update graph
90
90
let update = {
91
- let mut update = tx_graph:: Update :: default ( ) ;
91
+ let mut update = tx_graph:: TxUpdate :: default ( ) ;
92
92
for ( outpoint, txout) in & update_ops {
93
93
// Insert partials transactions.
94
94
update. txouts . insert ( * outpoint, txout. clone ( ) ) ;
@@ -1137,12 +1137,12 @@ fn call_map_anchors_with_non_deterministic_anchor() {
1137
1137
) ;
1138
1138
}
1139
1139
1140
- /// Tests `From` impls for conversion between [`TxGraph`] and [`tx_graph::Update `].
1140
+ /// Tests `From` impls for conversion between [`TxGraph`] and [`tx_graph::TxUpdate `].
1141
1141
#[ test]
1142
1142
fn tx_graph_update_conversion ( ) {
1143
- use tx_graph:: Update ;
1143
+ use tx_graph:: TxUpdate ;
1144
1144
1145
- type TestCase = ( & ' static str , Update < ConfirmationBlockTime > ) ;
1145
+ type TestCase = ( & ' static str , TxUpdate < ConfirmationBlockTime > ) ;
1146
1146
1147
1147
fn make_tx ( v : i32 ) -> Transaction {
1148
1148
Transaction {
@@ -1161,24 +1161,24 @@ fn tx_graph_update_conversion() {
1161
1161
}
1162
1162
1163
1163
let test_cases: & [ TestCase ] = & [
1164
- ( "empty_update" , Update :: default ( ) ) ,
1164
+ ( "empty_update" , TxUpdate :: default ( ) ) ,
1165
1165
(
1166
1166
"single_tx" ,
1167
- Update {
1167
+ TxUpdate {
1168
1168
txs : vec ! [ make_tx( 0 ) . into( ) ] ,
1169
1169
..Default :: default ( )
1170
1170
} ,
1171
1171
) ,
1172
1172
(
1173
1173
"two_txs" ,
1174
- Update {
1174
+ TxUpdate {
1175
1175
txs : vec ! [ make_tx( 0 ) . into( ) , make_tx( 1 ) . into( ) ] ,
1176
1176
..Default :: default ( )
1177
1177
} ,
1178
1178
) ,
1179
1179
(
1180
1180
"with_floating_txouts" ,
1181
- Update {
1181
+ TxUpdate {
1182
1182
txs : vec ! [ make_tx( 0 ) . into( ) , make_tx( 1 ) . into( ) ] ,
1183
1183
txouts : [
1184
1184
( OutPoint :: new ( h ! ( "a" ) , 0 ) , make_txout ( 0 ) ) ,
@@ -1191,7 +1191,7 @@ fn tx_graph_update_conversion() {
1191
1191
) ,
1192
1192
(
1193
1193
"with_anchors" ,
1194
- Update {
1194
+ TxUpdate {
1195
1195
txs : vec ! [ make_tx( 0 ) . into( ) , make_tx( 1 ) . into( ) ] ,
1196
1196
txouts : [
1197
1197
( OutPoint :: new ( h ! ( "a" ) , 0 ) , make_txout ( 0 ) ) ,
@@ -1209,7 +1209,7 @@ fn tx_graph_update_conversion() {
1209
1209
) ,
1210
1210
(
1211
1211
"with_seen_ats" ,
1212
- Update {
1212
+ TxUpdate {
1213
1213
txs : vec ! [ make_tx( 0 ) . into( ) , make_tx( 1 ) . into( ) ] ,
1214
1214
txouts : [
1215
1215
( OutPoint :: new ( h ! ( "a" ) , 0 ) , make_txout ( 0 ) ) ,
@@ -1230,7 +1230,7 @@ fn tx_graph_update_conversion() {
1230
1230
for ( test_name, update) in test_cases {
1231
1231
let mut tx_graph = TxGraph :: < ConfirmationBlockTime > :: default ( ) ;
1232
1232
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 ( ) ;
1234
1234
1235
1235
assert_eq ! (
1236
1236
update
0 commit comments