uncle risk and maxPriorityFeePerGas #4127
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
If there is an uncle block, the block’s transactions are all “undone” and never happed, so none of the senders in those transactions are charged anything, since they didn’t happen. But, that said, most those transactions will have occurred in another block, where they executed normally and were charged. But, since including more transactions increases the odds of an uncle (since it takes longer to build the block, propagate the block, etc) you need to offset those costs to encourage a miner to even bother including your transaction; keep in mind all the baseFee is burned and the miner gets none of that. So the priority fee is the only incentive for a miner to not produce empty blocks. In a proof of stake work though, risk is much smaller, which is why we now use a default of 1 gwei for priority fees. Does that make sense? |
Beta Was this translation helpful? Give feedback.
If there is an uncle block, the block’s transactions are all “undone” and never happed, so none of the senders in those transactions are charged anything, since they didn’t happen.
But, that said, most those transactions will have occurred in another block, where they executed normally and were charged.
But, since including more transactions increases the odds of an uncle (since it takes longer to build the block, propagate the block, etc) you need to offset those costs to encourage a miner to even bother including your transaction; keep in mind all the baseFee is burned and the miner gets none of that. So the priority fee is the only incentive for a miner to not produce empty blocks.
In …