mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-01-10 23:27:56 -05:00
validator/consensus: revert to overlay checkpoint when a transaction exceeds configured limit
This commit is contained in:
@@ -879,7 +879,12 @@ impl Fork {
|
||||
|
||||
// Check gas limit - if accumulated gas used exceeds it, break out of loop
|
||||
if accumulated_gas_usage > GAS_LIMIT_UNPROPOSED_TXS {
|
||||
warn!(target: "validator::consensus::unproposed_txs", "Retrieving transaction {} would exceed configured unproposed transaction gas limit: {} - {}", tx, accumulated_gas_usage, GAS_LIMIT_UNPROPOSED_TXS);
|
||||
warn!(
|
||||
target: "validator::consensus::unproposed_txs",
|
||||
"Retrieving transaction {} would exceed configured unproposed transaction gas limit: {} - {}",
|
||||
tx, accumulated_gas_usage, GAS_LIMIT_UNPROPOSED_TXS,
|
||||
);
|
||||
overlay.lock().unwrap().revert_to_checkpoint()?;
|
||||
break
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user