fix import cycle in tests

This commit is contained in:
alex.sharov 2023-04-19 15:39:45 +07:00
parent 9ea90b08c3
commit 0b778b9422
2 changed files with 0 additions and 8 deletions

View File

@ -28,7 +28,6 @@ import (
"github.com/ledgerwatch/erigon-lib/common/length"
"github.com/ledgerwatch/erigon-lib/kv"
"github.com/ledgerwatch/erigon-lib/kv/kvcfg"
"github.com/ledgerwatch/erigon/eth/ethconfig"
"github.com/ledgerwatch/log/v3"
"github.com/ledgerwatch/erigon/common"
@ -63,9 +62,6 @@ func NewPlainState(tx kv.Tx, blockNr uint64, systemContractLookup map[libcommon.
if histV3 {
panic("Please use HistoryStateReaderV3 with HistoryV3")
}
if ethconfig.EnableHistoryV4InTest {
panic("historyV4 require use StateReaderV4/StateWriterV4 instead of StateReader")
}
ps := &PlainState{
tx: tx,
blockNr: blockNr,

View File

@ -6,7 +6,6 @@ import (
"github.com/holiman/uint256"
libcommon "github.com/ledgerwatch/erigon-lib/common"
"github.com/ledgerwatch/erigon-lib/kv"
"github.com/ledgerwatch/erigon/eth/ethconfig"
"github.com/ledgerwatch/erigon/common/dbutils"
"github.com/ledgerwatch/erigon/core/types/accounts"
@ -27,9 +26,6 @@ type PlainStateWriter struct {
}
func NewPlainStateWriter(db putDel, changeSetsDB kv.RwTx, blockNumber uint64) *PlainStateWriter {
if ethconfig.EnableHistoryV4InTest {
panic("historyV4 require use StateReaderV4 instead of PlainStateReader")
}
return &PlainStateWriter{
db: db,
csw: NewChangeSetWriterPlain(changeSetsDB, blockNumber),