mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
Remove label and insert full version
This commit is contained in:
parent
23594cecbd
commit
696604cf7f
1 changed files with 38 additions and 37 deletions
|
|
@ -477,9 +477,11 @@ func (api *RetestethAPI) mineBlock() error {
|
|||
var txs []*types.Transaction
|
||||
var receipts []*types.Receipt
|
||||
var coalescedLogs []*types.Log
|
||||
if gasPool.Gas() >= params.TxGas {
|
||||
outer:
|
||||
var blockFull = gasPool.Gas() < params.TxGas
|
||||
for address := range api.txSenders {
|
||||
if blockFull {
|
||||
break
|
||||
}
|
||||
m := api.txMap[address]
|
||||
for nonce := statedb.GetNonce(address); ; nonce++ {
|
||||
if tx, ok := m[nonce]; ok {
|
||||
|
|
@ -497,7 +499,7 @@ func (api *RetestethAPI) mineBlock() error {
|
|||
)
|
||||
if err != nil {
|
||||
statedb.RevertToSnapshot(snap)
|
||||
continue outer
|
||||
break
|
||||
}
|
||||
txs = append(txs, tx)
|
||||
receipts = append(receipts, receipt)
|
||||
|
|
@ -510,14 +512,13 @@ func (api *RetestethAPI) mineBlock() error {
|
|||
}
|
||||
txCount++
|
||||
if gasPool.Gas() < params.TxGas {
|
||||
break outer
|
||||
blockFull = true
|
||||
}
|
||||
} else {
|
||||
break // Gap in the nonces
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
api.engine.rewardsOn = false
|
||||
block, err := api.engine.FinalizeAndAssemble(api.blockchain, header, statedb, txs, []*types.Header{}, receipts)
|
||||
return api.importBlock(block)
|
||||
|
|
@ -804,7 +805,7 @@ func (api *RetestethAPI) StorageRangeAt(ctx context.Context,
|
|||
}
|
||||
|
||||
func (api *RetestethAPI) ClientVersion(ctx context.Context) (string, error) {
|
||||
return "Geth/1.8.0", nil
|
||||
return "Geth-" + params.VersionWithCommit(gitCommit, gitDate), nil
|
||||
}
|
||||
|
||||
// splitAndTrim splits input separated by a comma
|
||||
|
|
|
|||
Loading…
Reference in a new issue