File tree Expand file tree Collapse file tree 13 files changed +26
-14
lines changed Expand file tree Collapse file tree 13 files changed +26
-14
lines changed Original file line number Diff line number Diff line change @@ -412,8 +412,20 @@ fn raw_transactions__test_mempool_accept__modelled() {
412
412
}
413
413
414
414
#[ test]
415
- #[ cfg( not( feature = "v17" ) ) ] // utxoupdatepsbt was added in v0.18.
416
- fn raw_transactions__utxo_update_psbt ( ) { }
415
+ #[ cfg( not( feature = "v17" ) ) ]
416
+ fn raw_transactions__utxo_update_psbt__modelled ( ) {
417
+ let node = Node :: with_wallet ( Wallet :: Default , & [ ] ) ;
418
+ node. fund_wallet ( ) ;
419
+
420
+ let psbt = create_a_psbt ( & node) ;
421
+ let json: UtxoUpdatePsbt = node
422
+ . client
423
+ . utxo_update_psbt ( & psbt)
424
+ . expect ( "utxoupdatepsbt" ) ;
425
+ let model: mtype:: UtxoUpdatePsbt = json. into_model ( ) . expect ( "UtxoUpdatePsbt into model" ) ;
426
+
427
+ assert ! ( model. 0 . inputs. len( ) >= psbt. inputs. len( ) ) ;
428
+ }
417
429
418
430
// Manipulates raw transactions.
419
431
//
Original file line number Diff line number Diff line change 133
133
//! | sendrawtransaction | version + model | |
134
134
//! | signrawtransactionwithkey | version + model | |
135
135
//! | testmempoolaccept | version + model | |
136
- //! | utxoupdatepsbt | version + model | UNTESTED |
136
+ //! | utxoupdatepsbt | version + model | |
137
137
//!
138
138
//! </details>
139
139
//!
Original file line number Diff line number Diff line change 133
133
//! | sendrawtransaction | version + model | |
134
134
//! | signrawtransactionwithkey | version + model | |
135
135
//! | testmempoolaccept | version + model | |
136
- //! | utxoupdatepsbt | version + model | UNTESTED |
136
+ //! | utxoupdatepsbt | version + model | |
137
137
//!
138
138
//! </details>
139
139
//!
Original file line number Diff line number Diff line change 134
134
//! | sendrawtransaction | version + model | |
135
135
//! | signrawtransactionwithkey | version + model | |
136
136
//! | testmempoolaccept | version + model | |
137
- //! | utxoupdatepsbt | version + model | UNTESTED |
137
+ //! | utxoupdatepsbt | version + model | |
138
138
//!
139
139
//! </details>
140
140
//!
Original file line number Diff line number Diff line change 135
135
//! | sendrawtransaction | version + model | |
136
136
//! | signrawtransactionwithkey | version + model | |
137
137
//! | testmempoolaccept | version + model | |
138
- //! | utxoupdatepsbt | version + model | UNTESTED |
138
+ //! | utxoupdatepsbt | version + model | |
139
139
//!
140
140
//! </details>
141
141
//!
Original file line number Diff line number Diff line change 135
135
//! | sendrawtransaction | version + model | |
136
136
//! | signrawtransactionwithkey | version + model | |
137
137
//! | testmempoolaccept | version + model | |
138
- //! | utxoupdatepsbt | version + model | UNTESTED |
138
+ //! | utxoupdatepsbt | version + model | |
139
139
//!
140
140
//! </details>
141
141
//!
Original file line number Diff line number Diff line change 126
126
//! | sendrawtransaction | version + model | |
127
127
//! | signrawtransactionwithkey | version + model | |
128
128
//! | testmempoolaccept | version + model | |
129
- //! | utxoupdatepsbt | version + model | UNTESTED |
129
+ //! | utxoupdatepsbt | version + model | |
130
130
//!
131
131
//! </details>
132
132
//!
Original file line number Diff line number Diff line change 127
127
//! | sendrawtransaction | version + model | |
128
128
//! | signrawtransactionwithkey | version + model | |
129
129
//! | testmempoolaccept | version + model | |
130
- //! | utxoupdatepsbt | version + model | UNTESTED |
130
+ //! | utxoupdatepsbt | version + model | |
131
131
//!
132
132
//! </details>
133
133
//!
Original file line number Diff line number Diff line change 128
128
//! | sendrawtransaction | version + model | |
129
129
//! | signrawtransactionwithkey | version + model | |
130
130
//! | testmempoolaccept | version + model | |
131
- //! | utxoupdatepsbt | version + model | UNTESTED |
131
+ //! | utxoupdatepsbt | version + model | |
132
132
//!
133
133
//! </details>
134
134
//!
Original file line number Diff line number Diff line change 136
136
//! | signrawtransactionwithkey | version + model | |
137
137
//! | submitpackage | version + model | |
138
138
//! | testmempoolaccept | version + model | |
139
- //! | utxoupdatepsbt | version + model | UNTESTED |
139
+ //! | utxoupdatepsbt | version + model | |
140
140
//!
141
141
//! </details>
142
142
//!
You can’t perform that action at this time.
0 commit comments