-
Notifications
You must be signed in to change notification settings - Fork 1.7k
minGasLimit/gasLimitBoundDivisor is not taken into account when creating pending block #3760
Comments
It's in the description but not in the title, so I'd add: |
@lgpawel I've addressed the gas-floor going below the specified minimum, but could you check that your issue with the bound divisor is also fixed? Otherwise I will reopen. |
BTW, this is a consensus issue which could manifest if for some crazy reason the mainnet miners voted the gas limit down to practically nothing. |
I can't confirm the
(1d44…12b5 is obviously the first block). Next I've edited the chain spec so that But if I increment the divisor by one, so that by the same inequalities there is actually no valid gas limit, then again the mining node imports its own blocks, whereas the other fails with
So this kind of still stands, but it probably makes no sense to fix an issue that manifests itself only (?) for chain specs for which there exist no valid blocks. |
I accidentally tested it one more time, so I now can provide logs (with probably irrelevant level of detail) and chainspecs and stuff. Now both nodes run on the same machine, but the result does not hang upon that. I did
The chain spec and the logs are at https://gist.github.com/lgpawel/8c4476182031ad86c6fc33ce4702c0b4 – the offending message is in line 95 of |
Seems that the only uncovered case is when |
Retried the steps above and the behaviour is not reproduced any more, and the gas limit stays constantly equal to the minimum. 🎉 |
Together with
--gas-floor-target
belowminGasLimit
leads the node to mine invalid blocks (that presumably are short-circuited into the chain without proper verification that would reject them)Reported on gitter:
The text was updated successfully, but these errors were encountered: