mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
mineBlock - break the inner loop when the block is full
This commit is contained in:
parent
696604cf7f
commit
c440212de6
1 changed files with 1 additions and 0 deletions
|
|
@ -513,6 +513,7 @@ func (api *RetestethAPI) mineBlock() error {
|
|||
txCount++
|
||||
if gasPool.Gas() < params.TxGas {
|
||||
blockFull = true
|
||||
break
|
||||
}
|
||||
} else {
|
||||
break // Gap in the nonces
|
||||
|
|
|
|||
Loading…
Reference in a new issue