File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -150,15 +150,15 @@ where C::Target: chain::Filter,
150
150
// transactions from within the block that previously had not been included in txdata.
151
151
if let Some ( ref chain_source) = self . chain_source {
152
152
let block_hash = header. block_hash ( ) ;
153
- for ( txid, outputs) in txn_outputs. drain ( ..) {
154
- for ( idx, output) in outputs. iter ( ) {
153
+ for ( txid, mut outputs) in txn_outputs. drain ( ..) {
154
+ for ( idx, output) in outputs. drain ( .. ) {
155
155
// Register any new outputs with the chain source for filtering and recurse
156
156
// if it indicates that there are dependent transactions within the block
157
157
// that had not been previously included in txdata.
158
158
let output = WatchedOutput {
159
159
block_hash : Some ( block_hash) ,
160
- outpoint : OutPoint { txid, index : * idx as u16 } ,
161
- script_pubkey : output. script_pubkey . clone ( ) ,
160
+ outpoint : OutPoint { txid, index : idx as u16 } ,
161
+ script_pubkey : output. script_pubkey ,
162
162
} ;
163
163
if let Some ( tx) = chain_source. register_output ( output) {
164
164
dependent_txdata. push ( tx) ;
You can’t perform that action at this time.
0 commit comments