diff --git a/chains/chaindata.go b/chains/chaindata.go index e83cb65..9a11534 100644 --- a/chains/chaindata.go +++ b/chains/chaindata.go @@ -2,7 +2,6 @@ package chains import ( "errors" - "fmt" "io" "os" "path/filepath" @@ -33,7 +32,7 @@ func IsFixture(chain string) bool { // GetFixture returns the paths to the fixture chaindata for the given name. This copies the // fixture data and returns paths to temp directories, due to the fact that Go modules are installed -// read-only and Leveldb will attempt to create lock files when opening a DB. +// read-only and Leveldb/Pebble will attempt to create lock files when opening a DB. func GetFixture(chain string) (*Paths, error) { if !IsFixture(chain) { return nil, errors.New("no fixture named " + chain) diff --git a/chains/data/premerge1/geth/chaindata/CURRENT b/chains/data/premerge1/geth/chaindata/CURRENT new file mode 100644 index 0000000..aa5bb8e --- /dev/null +++ b/chains/data/premerge1/geth/chaindata/CURRENT @@ -0,0 +1 @@ +MANIFEST-000005 diff --git a/chains/data/premerge1/geth/chaindata/MANIFEST-000005 b/chains/data/premerge1/geth/chaindata/MANIFEST-000005 new file mode 100644 index 0000000..71a995b Binary files /dev/null and b/chains/data/premerge1/geth/chaindata/MANIFEST-000005 differ diff --git a/chains/data/premerge2/geth/chaindata/CURRENT b/chains/data/premerge2/geth/chaindata/CURRENT new file mode 100644 index 0000000..cacca75 --- /dev/null +++ b/chains/data/premerge2/geth/chaindata/CURRENT @@ -0,0 +1 @@ +MANIFEST-000004 diff --git a/chains/data/premerge2/geth/chaindata/MANIFEST-000004 b/chains/data/premerge2/geth/chaindata/MANIFEST-000004 new file mode 100644 index 0000000..1d3ab0a Binary files /dev/null and b/chains/data/premerge2/geth/chaindata/MANIFEST-000004 differ diff --git a/chains/postmerge1/chain.go b/chains/postmerge1/chain.go new file mode 100644 index 0000000..0462c05 --- /dev/null +++ b/chains/postmerge1/chain.go @@ -0,0 +1,18 @@ +// This fixture is the first using Pebble instead of Leveldb. It was generated by a fixturenet +// running geth 1.14.5 using a "merged from Genesis" configuration, as opposed to the previous +// fixtures for which the Merge occurred at block 1. +package postmerge1 + +import ( + "github.com/cerc-io/eth-testing/chains" +) + +var ( + ChainData, err = chains.GetFixture("postmerge1") +) + +func init() { + if err != nil { + panic(err) + } +}