mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-03 17:44:29 +00:00
cmd/faucet, cmd/geth: fix staticcheck warnings (#20374)
This commit is contained in:
parent
14bb7db725
commit
a3747e06f0
@ -494,7 +494,6 @@ func (api *RetestethAPI) mineBlock() error {
|
|||||||
txCount := 0
|
txCount := 0
|
||||||
var txs []*types.Transaction
|
var txs []*types.Transaction
|
||||||
var receipts []*types.Receipt
|
var receipts []*types.Receipt
|
||||||
var coalescedLogs []*types.Log
|
|
||||||
var blockFull = gasPool.Gas() < params.TxGas
|
var blockFull = gasPool.Gas() < params.TxGas
|
||||||
for address := range api.txSenders {
|
for address := range api.txSenders {
|
||||||
if blockFull {
|
if blockFull {
|
||||||
@ -522,7 +521,6 @@ func (api *RetestethAPI) mineBlock() error {
|
|||||||
}
|
}
|
||||||
txs = append(txs, tx)
|
txs = append(txs, tx)
|
||||||
receipts = append(receipts, receipt)
|
receipts = append(receipts, receipt)
|
||||||
coalescedLogs = append(coalescedLogs, receipt.Logs...)
|
|
||||||
delete(m, nonce)
|
delete(m, nonce)
|
||||||
if len(m) == 0 {
|
if len(m) == 0 {
|
||||||
// Last tx for the sender
|
// Last tx for the sender
|
||||||
@ -897,7 +895,7 @@ func retesteth(ctx *cli.Context) error {
|
|||||||
log.Info("HTTP endpoint closed", "url", httpEndpoint)
|
log.Info("HTTP endpoint closed", "url", httpEndpoint)
|
||||||
}()
|
}()
|
||||||
|
|
||||||
abortChan := make(chan os.Signal)
|
abortChan := make(chan os.Signal, 11)
|
||||||
signal.Notify(abortChan, os.Interrupt)
|
signal.Notify(abortChan, os.Interrupt)
|
||||||
|
|
||||||
sig := <-abortChan
|
sig := <-abortChan
|
||||||
|
Loading…
Reference in New Issue
Block a user