@@ -4,7 +4,7 @@ extern crate lightning;
4
4
extern crate secp256k1;
5
5
6
6
use bitcoin:: blockdata:: block:: BlockHeader ;
7
- use bitcoin:: blockdata:: transaction:: { Transaction , TxOut } ;
7
+ use bitcoin:: blockdata:: transaction:: { Transaction , TxOut , TxOutRef } ;
8
8
use bitcoin:: blockdata:: script:: Script ;
9
9
use bitcoin:: network:: constants:: Network ;
10
10
use bitcoin:: network:: serialize:: { serialize, BitcoinHash } ;
@@ -93,7 +93,7 @@ impl FeeEstimator for FuzzEstimator {
93
93
94
94
struct TestChannelMonitor { }
95
95
impl channelmonitor:: ManyChannelMonitor for TestChannelMonitor {
96
- fn add_update_monitor ( & self , _funding_txo : ( Sha256dHash , u16 ) , _monitor : channelmonitor:: ChannelMonitor ) -> Result < ( ) , channelmonitor:: ChannelMonitorUpdateErr > {
96
+ fn add_update_monitor ( & self , _funding_txo : TxOutRef , _monitor : channelmonitor:: ChannelMonitor ) -> Result < ( ) , channelmonitor:: ChannelMonitorUpdateErr > {
97
97
//TODO!
98
98
Ok ( ( ) )
99
99
}
@@ -280,7 +280,10 @@ pub fn do_test(data: &[u8]) {
280
280
let mut tx = Transaction { version : 0 , lock_time : 0 , input : Vec :: new ( ) , output : vec ! [ TxOut {
281
281
value: funding_generation. 1 , script_pubkey: funding_generation. 2 ,
282
282
} ] } ;
283
- let funding_output = ( Sha256dHash :: from_data ( & serialize ( & tx) . unwrap ( ) [ ..] ) , 0 ) ;
283
+ let funding_output = TxOutRef {
284
+ txid : Sha256dHash :: from_data ( & serialize ( & tx) . unwrap ( ) [ ..] ) ,
285
+ index : 0
286
+ } ;
284
287
channelmanager. funding_transaction_generated ( & funding_generation. 0 , funding_output. clone ( ) ) ;
285
288
pending_funding_signatures. insert ( funding_output, tx) ;
286
289
}
0 commit comments