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++
|
txCount++
|
||||||
if gasPool.Gas() < params.TxGas {
|
if gasPool.Gas() < params.TxGas {
|
||||||
blockFull = true
|
blockFull = true
|
||||||
|
break
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
break // Gap in the nonces
|
break // Gap in the nonces
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue