File tree Expand file tree Collapse file tree 13 files changed +30
-12
lines changed Expand file tree Collapse file tree 13 files changed +30
-12
lines changed Original file line number Diff line number Diff line change @@ -309,6 +309,24 @@ fn raw_transactions__get_raw_transaction__modelled() {
309
309
310
310
}
311
311
312
+ #[ test]
313
+ #[ cfg( not( feature = "v17" ) ) ]
314
+ fn raw_transactions__join_psbts__modelled ( ) {
315
+ let node = Node :: with_wallet ( Wallet :: Default , & [ ] ) ;
316
+ node. fund_wallet ( ) ;
317
+
318
+ let psbt1 = create_a_psbt ( & node) ;
319
+ let psbt2 = create_a_psbt ( & node) ;
320
+
321
+ let json: JoinPsbts = node
322
+ . client
323
+ . join_psbts ( & [ psbt1. clone ( ) , psbt2. clone ( ) ] )
324
+ . expect ( "joinpsbts" ) ;
325
+ let model: mtype:: JoinPsbts = json. into_model ( ) . expect ( "JoinPsbts into model" ) ;
326
+
327
+ assert_eq ! ( model. 0 . inputs. len( ) , psbt1. inputs. len( ) + psbt2. inputs. len( ) ) ;
328
+ }
329
+
312
330
#[ test]
313
331
fn raw_transactions__sign_raw_transaction__modelled ( ) {
314
332
let node = Node :: with_wallet ( Wallet :: Default , & [ ] ) ;
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