update tests, helper methods, etc for changed interfaces linted and some tests updated... statediff tests failing on filesystem call locally undo changes to go.mod from rebase changed ref and repo to try old stack-orch with miner.etherbase arg turn off new tests yml for old tests with hack for old stack-orchestrator
28 lines
508 B
Go
28 lines
508 B
Go
package fixture
|
|
|
|
import (
|
|
"os"
|
|
"path/filepath"
|
|
"runtime"
|
|
)
|
|
|
|
// TODO: embed some mainnet data
|
|
// import "embed"
|
|
//_go:embed mainnet_data.tar.gz
|
|
|
|
var (
|
|
ChainDataPath, AncientDataPath string
|
|
)
|
|
|
|
func init() {
|
|
_, path, _, _ := runtime.Caller(0)
|
|
wd := filepath.Dir(path)
|
|
|
|
ChainDataPath = filepath.Join(wd, "..", "fixture", "chaindata")
|
|
AncientDataPath = filepath.Join(ChainDataPath, "ancient")
|
|
|
|
if _, err := os.Stat(ChainDataPath); err != nil {
|
|
panic("must populate chaindata at " + ChainDataPath)
|
|
}
|
|
}
|