File tree Expand file tree Collapse file tree 13 files changed +29
-12
lines changed Expand file tree Collapse file tree 13 files changed +29
-12
lines changed Original file line number Diff line number Diff line change @@ -308,6 +308,23 @@ fn raw_transactions__get_raw_transaction__modelled() {
308
308
. expect ( "GetRawTransactionVerbose into model" ) ;
309
309
310
310
}
311
+ t #[ test]
312
+ #[ cfg( not( feature = "v17" ) ) ]
313
+ fn raw_transactions__join_psbts__modelled ( ) {
314
+ let node = Node :: with_wallet ( Wallet :: Default , & [ ] ) ;
315
+ node. fund_wallet ( ) ;
316
+
317
+ let psbt1 = create_a_psbt ( & node) ;
318
+ let psbt2 = create_a_psbt ( & node) ;
319
+
320
+ let json: JoinPsbts = node
321
+ . client
322
+ . join_psbts ( & [ psbt1. clone ( ) , psbt2. clone ( ) ] )
323
+ . expect ( "joinpsbts" ) ;
324
+ let model: mtype:: JoinPsbts = json. into_model ( ) . expect ( "JoinPsbts into model" ) ;
325
+
326
+ assert_eq ! ( model. 0 . inputs. len( ) , psbt1. inputs. len( ) + psbt2. inputs. len( ) ) ;
327
+ }
311
328
312
329
#[ test]
313
330
fn raw_transactions__sign_raw_transaction__modelled ( ) {
Original file line number Diff line number Diff line change 129
129
//! | finalizepsbt | version + model | |
130
130
//! | fundrawtransaction | version + model | |
131
131
//! | getrawtransaction | version + model | Includes additional 'verbose' type |
132
- //! | joinpsbts | version + model | UNTESTED |
132
+ //! | joinpsbts | version + model | |
133
133
//! | sendrawtransaction | version + model | |
134
134
//! | signrawtransactionwithkey | version + model | |
135
135
//! | testmempoolaccept | version + model | |
Original file line number Diff line number Diff line change 129
129
//! | finalizepsbt | version + model | |
130
130
//! | fundrawtransaction | version + model | |
131
131
//! | getrawtransaction | version + model | Includes additional 'verbose' type |
132
- //! | joinpsbts | version + model | UNTESTED |
132
+ //! | joinpsbts | version + model | |
133
133
//! | sendrawtransaction | version + model | |
134
134
//! | signrawtransactionwithkey | version + model | |
135
135
//! | testmempoolaccept | version + model | |
Original file line number Diff line number Diff line change 130
130
//! | finalizepsbt | version + model | |
131
131
//! | fundrawtransaction | version + model | |
132
132
//! | getrawtransaction | version + model | Includes additional 'verbose' type |
133
- //! | joinpsbts | version + model | UNTESTED |
133
+ //! | joinpsbts | version + model | |
134
134
//! | sendrawtransaction | version + model | |
135
135
//! | signrawtransactionwithkey | version + model | |
136
136
//! | testmempoolaccept | version + model | |
Original file line number Diff line number Diff line change 131
131
//! | finalizepsbt | version + model | |
132
132
//! | fundrawtransaction | version + model | |
133
133
//! | getrawtransaction | version + model | Includes additional 'verbose' type |
134
- //! | joinpsbts | version + model | UNTESTED |
134
+ //! | joinpsbts | version + model | |
135
135
//! | sendrawtransaction | version + model | |
136
136
//! | signrawtransactionwithkey | version + model | |
137
137
//! | testmempoolaccept | version + model | |
Original file line number Diff line number Diff line change 131
131
//! | finalizepsbt | version + model | |
132
132
//! | fundrawtransaction | version + model | |
133
133
//! | getrawtransaction | version + model | Includes additional 'verbose' type |
134
- //! | joinpsbts | version + model | UNTESTED |
134
+ //! | joinpsbts | version + model | |
135
135
//! | sendrawtransaction | version + model | |
136
136
//! | signrawtransactionwithkey | version + model | |
137
137
//! | testmempoolaccept | version + model | |
Original file line number Diff line number Diff line change 122
122
//! | finalizepsbt | version + model | |
123
123
//! | fundrawtransaction | version + model | |
124
124
//! | getrawtransaction | version + model | Includes additional 'verbose' type |
125
- //! | joinpsbts | version + model | UNTESTED |
125
+ //! | joinpsbts | version + model | |
126
126
//! | sendrawtransaction | version + model | |
127
127
//! | signrawtransactionwithkey | version + model | |
128
128
//! | testmempoolaccept | version + model | |
Original file line number Diff line number Diff line change 123
123
//! | finalizepsbt | version + model | |
124
124
//! | fundrawtransaction | version + model | |
125
125
//! | getrawtransaction | version + model | Includes additional 'verbose' type |
126
- //! | joinpsbts | version + model | UNTESTED |
126
+ //! | joinpsbts | version + model | |
127
127
//! | sendrawtransaction | version + model | |
128
128
//! | signrawtransactionwithkey | version + model | |
129
129
//! | testmempoolaccept | version + model | |
Original file line number Diff line number Diff line change 124
124
//! | finalizepsbt | version + model | |
125
125
//! | fundrawtransaction | version + model | |
126
126
//! | getrawtransaction | version + model | Includes additional 'verbose' type |
127
- //! | joinpsbts | version + model | UNTESTED |
127
+ //! | joinpsbts | version + model | |
128
128
//! | sendrawtransaction | version + model | |
129
129
//! | signrawtransactionwithkey | version + model | |
130
130
//! | testmempoolaccept | version + model | |
Original file line number Diff line number Diff line change 131
131
//! | finalizepsbt | version + model | |
132
132
//! | fundrawtransaction | version + model | |
133
133
//! | getrawtransaction | version + model | Includes additional 'verbose' type |
134
- //! | joinpsbts | version + model | UNTESTED |
134
+ //! | joinpsbts | version + model | |
135
135
//! | sendrawtransaction | version + model | |
136
136
//! | signrawtransactionwithkey | version + model | |
137
137
//! | submitpackage | version + model | |
You can’t perform that action at this time.
0 commit comments