We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da3065b commit 02ffd42Copy full SHA for 02ffd42
src/wallet.rs
@@ -318,23 +318,23 @@ where
318
let mut errors = Vec::new();
319
320
for tx in txs {
321
- handles.push(self.blockchain.broadcast(tx));
+ handles.push((tx.txid(), self.blockchain.broadcast(tx)));
322
}
323
324
for handle in handles {
325
- match handle.await {
+ match handle.1.await {
326
Ok(_) => {}
327
Err(e) => {
328
- errors.push(e);
+ errors.push((e, handle.0));
329
330
331
332
errors
333
})
334
});
335
336
- for e in errors {
337
- log_error!(self.logger, "Failed to broadcast transaction: {}", e);
+ for (e, txid) in errors {
+ log_error!(self.logger, "Failed to broadcast transaction {}: {}", txid, e);
338
339
340
0 commit comments