Skip to content

Commit a35ed90

Browse files
committed
f Panic on broadcast failure
1 parent caf8683 commit a35ed90

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/access.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,10 @@ where
295295
fn broadcast_transaction(&self, tx: &Transaction) {
296296
match self.blockchain.broadcast(tx) {
297297
Ok(_) => {}
298-
Err(err) => log_error!(self.logger, "Failed to broadcast transaction: {}", err),
298+
Err(err) => {
299+
log_error!(self.logger, "Failed to broadcast transaction: {}", err),
300+
panic!("Failed to broadcast transaction: {}", err);
301+
}
299302
}
300303
}
301304
}

0 commit comments

Comments
 (0)