Roy Crihfield
7ace692eb0
All checks were successful
Test / Run unit tests (push) Successful in 4m26s
Deneb/Cancun fork updates Reviewed-on: #6
33 lines
802 B
Go
33 lines
802 B
Go
//go:build plugeth
|
|
|
|
package statediff
|
|
|
|
import (
|
|
"github.com/ethereum/go-ethereum/core"
|
|
"github.com/ethereum/go-ethereum/core/state"
|
|
"github.com/ethereum/go-ethereum/ethdb"
|
|
"github.com/ethereum/go-ethereum/triedb"
|
|
|
|
statediff "github.com/cerc-io/plugeth-statediff"
|
|
"github.com/cerc-io/plugeth-statediff/adapt"
|
|
"github.com/cerc-io/plugeth-statediff/test_helpers"
|
|
sdtypes "github.com/cerc-io/plugeth-statediff/types"
|
|
)
|
|
|
|
type Args = statediff.Args
|
|
type Params = statediff.Params
|
|
|
|
type StateObject = sdtypes.StateObject
|
|
|
|
func MakeBuilder(sdb state.Database) statediff.Builder {
|
|
return statediff.NewBuilder(adapt.GethStateView(sdb))
|
|
}
|
|
|
|
func CommitDefaultGenesis(db ethdb.Database) {
|
|
core.DefaultGenesisBlock().MustCommit(db, triedb.NewDatabase(db, nil))
|
|
}
|
|
|
|
func init() {
|
|
test_helpers.QuietLogs()
|
|
}
|