add missing files
This commit is contained in:
parent
292c71b471
commit
7c57c53dc8
@ -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)
|
||||
|
1
chains/data/premerge1/geth/chaindata/CURRENT
Normal file
1
chains/data/premerge1/geth/chaindata/CURRENT
Normal file
@ -0,0 +1 @@
|
||||
MANIFEST-000005
|
BIN
chains/data/premerge1/geth/chaindata/MANIFEST-000005
Normal file
BIN
chains/data/premerge1/geth/chaindata/MANIFEST-000005
Normal file
Binary file not shown.
1
chains/data/premerge2/geth/chaindata/CURRENT
Normal file
1
chains/data/premerge2/geth/chaindata/CURRENT
Normal file
@ -0,0 +1 @@
|
||||
MANIFEST-000004
|
BIN
chains/data/premerge2/geth/chaindata/MANIFEST-000004
Normal file
BIN
chains/data/premerge2/geth/chaindata/MANIFEST-000004
Normal file
Binary file not shown.
18
chains/postmerge1/chain.go
Normal file
18
chains/postmerge1/chain.go
Normal file
@ -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)
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user