mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
rm mockchain
This commit is contained in:
parent
83ceaacf2e
commit
7ab6a20938
1 changed files with 0 additions and 20 deletions
|
|
@ -532,26 +532,6 @@ func TestProcessVerkle(t *testing.T) {
|
|||
}
|
||||
}
|
||||
|
||||
type MockChain struct {
|
||||
chain map[common.Hash]*types.Header
|
||||
}
|
||||
|
||||
func (m *MockChain) Config() *params.ChainConfig { return nil }
|
||||
|
||||
func (m *MockChain) CurrentHeader() *types.Header { return nil }
|
||||
|
||||
func (m *MockChain) GetHeaderByNumber(number uint64) *types.Header { return nil }
|
||||
|
||||
func (m *MockChain) GetTd(hash common.Hash, number uint64) *big.Int { return nil }
|
||||
|
||||
func (m *MockChain) GetHeaderByHash(hash common.Hash) *types.Header {
|
||||
return m.chain[hash]
|
||||
}
|
||||
|
||||
func (m *MockChain) GetHeader(hash common.Hash, number uint64) *types.Header {
|
||||
return m.chain[hash]
|
||||
}
|
||||
|
||||
func TestProcessParentBlockHash(t *testing.T) {
|
||||
var (
|
||||
statedb, _ = state.New(types.EmptyRootHash, state.NewDatabase(rawdb.NewDatabase(memorydb.New())), nil)
|
||||
|
|
|
|||
Loading…
Reference in a new issue