mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-13 11:36:37 +00:00
address more lint errors
This commit is contained in:
parent
6d1df21ef9
commit
787464adfc
5 changed files with 12 additions and 8 deletions
|
|
@ -18,10 +18,11 @@ package engine
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/ethereum/go-ethereum/core/types/bal"
|
|
||||||
"math/big"
|
"math/big"
|
||||||
"slices"
|
"slices"
|
||||||
|
|
||||||
|
"github.com/ethereum/go-ethereum/core/types/bal"
|
||||||
|
|
||||||
"github.com/ethereum/go-ethereum/common"
|
"github.com/ethereum/go-ethereum/common"
|
||||||
"github.com/ethereum/go-ethereum/common/hexutil"
|
"github.com/ethereum/go-ethereum/common/hexutil"
|
||||||
"github.com/ethereum/go-ethereum/core/types"
|
"github.com/ethereum/go-ethereum/core/types"
|
||||||
|
|
|
||||||
|
|
@ -604,6 +604,7 @@ func (bc *BlockChain) processBlockWithAccessList(parentRoot common.Hash, block *
|
||||||
var (
|
var (
|
||||||
startTime = time.Now()
|
startTime = time.Now()
|
||||||
procTime time.Duration
|
procTime time.Duration
|
||||||
|
statedb *state.StateDB
|
||||||
)
|
)
|
||||||
|
|
||||||
sdb := state.NewDatabase(bc.triedb, bc.codedb).WithSnapshot(bc.snaps)
|
sdb := state.NewDatabase(bc.triedb, bc.codedb).WithSnapshot(bc.snaps)
|
||||||
|
|
@ -620,7 +621,7 @@ func (bc *BlockChain) processBlockWithAccessList(parentRoot common.Hash, block *
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
statedb, err := state.NewWithReader(parentRoot, sdb, prefetchReader)
|
statedb, err = state.NewWithReader(parentRoot, sdb, prefetchReader)
|
||||||
|
|
||||||
if bc.logger != nil && bc.logger.OnBlockStart != nil {
|
if bc.logger != nil && bc.logger.OnBlockStart != nil {
|
||||||
bc.logger.OnBlockStart(tracing.BlockEvent{
|
bc.logger.OnBlockStart(tracing.BlockEvent{
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,11 @@
|
||||||
package state
|
package state
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"maps"
|
||||||
|
"sync"
|
||||||
|
"sync/atomic"
|
||||||
|
"time"
|
||||||
|
|
||||||
"github.com/ethereum/go-ethereum/common"
|
"github.com/ethereum/go-ethereum/common"
|
||||||
"github.com/ethereum/go-ethereum/core/types"
|
"github.com/ethereum/go-ethereum/core/types"
|
||||||
"github.com/ethereum/go-ethereum/core/types/bal"
|
"github.com/ethereum/go-ethereum/core/types/bal"
|
||||||
|
|
@ -9,10 +14,6 @@ import (
|
||||||
"github.com/ethereum/go-ethereum/trie/trienode"
|
"github.com/ethereum/go-ethereum/trie/trienode"
|
||||||
"github.com/holiman/uint256"
|
"github.com/holiman/uint256"
|
||||||
"golang.org/x/sync/errgroup"
|
"golang.org/x/sync/errgroup"
|
||||||
"maps"
|
|
||||||
"sync"
|
|
||||||
"sync/atomic"
|
|
||||||
"time"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// BALStateTransition is responsible for performing the state root update
|
// BALStateTransition is responsible for performing the state root update
|
||||||
|
|
|
||||||
|
|
@ -63,9 +63,10 @@ package state
|
||||||
// └─────────────────────────────┘
|
// └─────────────────────────────┘
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/ethereum/go-ethereum/crypto"
|
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
|
"github.com/ethereum/go-ethereum/crypto"
|
||||||
|
|
||||||
"github.com/ethereum/go-ethereum/common"
|
"github.com/ethereum/go-ethereum/common"
|
||||||
"github.com/ethereum/go-ethereum/core/types"
|
"github.com/ethereum/go-ethereum/core/types"
|
||||||
"github.com/ethereum/go-ethereum/core/types/bal"
|
"github.com/ethereum/go-ethereum/core/types/bal"
|
||||||
|
|
|
||||||
|
|
@ -202,7 +202,7 @@ func newConstructionAccountAccesses() *ConstructionAccountAccesses {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// StateDiff contains state mutations occuring over one or more access list
|
// StateDiff contains state mutations occurring over one or more access list
|
||||||
// index.
|
// index.
|
||||||
type StateDiff struct {
|
type StateDiff struct {
|
||||||
Mutations map[common.Address]*AccountMutations `json:"Mutations,omitempty"`
|
Mutations map[common.Address]*AccountMutations `json:"Mutations,omitempty"`
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue