Skip to content

Commit

Permalink
fix(protocol): allow proposing when proving is paused (#15796)
Browse files Browse the repository at this point in the history
  • Loading branch information
Brechtpd authored Feb 15, 2024
1 parent a3a12de commit 6b46943
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 3 additions & 1 deletion packages/protocol/contracts/L1/TaikoL1.sol
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ contract TaikoL1 is
(meta, depositsProcessed) =
LibProposing.proposeBlock(state, config, AddressResolver(this), params, txList);

_verifyBlocks(config, config.maxBlocksToVerifyPerProposal);
if (!state.slotB.provingPaused) {
_verifyBlocks(config, config.maxBlocksToVerifyPerProposal);
}
}

/// @inheritdoc ITaikoL1
Expand Down
3 changes: 0 additions & 3 deletions packages/protocol/contracts/L1/hooks/AssignmentHook.sol
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,7 @@ contract AssignmentHook is EssentialContract, IHook {

// The proposer irrevocably pays a fee to the assigned prover, either in
// Ether or ERC20 tokens.
uint256 totalFeeETH = input.tip;
if (assignment.feeToken == address(0)) {
totalFeeETH += proverFee;

// Paying Ether
blk.assignedProver.sendEther(proverFee, MAX_GAS_PAYING_PROVER);
} else {
Expand Down

0 comments on commit 6b46943

Please sign in to comment.