File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -141,12 +141,10 @@ where
141
141
}
142
142
}
143
143
144
- let mut mempool_event = MempoolEvent :: default ( ) ;
145
-
146
- mempool_event. update = rpc_mempool
147
- . into_iter ( )
148
- . filter_map ( {
149
- |txid| -> Option < Result < _ , bitcoincore_rpc:: Error > > {
144
+ let mut mempool_event = MempoolEvent {
145
+ update : rpc_mempool
146
+ . into_iter ( )
147
+ . filter_map ( |txid| -> Option < Result < _ , bitcoincore_rpc:: Error > > {
150
148
let tx = match self . mempool_snapshot . get ( & txid) {
151
149
Some ( tx) => tx. clone ( ) ,
152
150
None => match client. get_raw_transaction ( & txid, None ) {
@@ -160,9 +158,10 @@ where
160
158
} ,
161
159
} ;
162
160
Some ( Ok ( ( tx, sync_time) ) )
163
- }
164
- } )
165
- . collect :: < Result < Vec < _ > , _ > > ( ) ?;
161
+ } )
162
+ . collect :: < Result < Vec < _ > , _ > > ( ) ?,
163
+ ..Default :: default ( )
164
+ } ;
166
165
167
166
let at_tip =
168
167
rpc_tip_height == self . last_cp . height ( ) as u64 && rpc_tip_hash == self . last_cp . hash ( ) ;
You can’t perform that action at this time.
0 commit comments