aboutsummaryrefslogtreecommitdiffstats
path: root/core/vm
diff options
context:
space:
mode:
authorFelix Lange <fjl@users.noreply.github.com>2018-10-24 03:51:41 +0800
committerMartin Holst Swende <martin@swende.se>2018-10-24 03:51:41 +0800
commit7f22b59f87cfda85a14eed6481da68e3dfba44a1 (patch)
treede3cce1f21def7c6ab7c3591af4c9ca3febe558b /core/vm
parent4c0883e20d78b987dc95acd46498f326626aaee3 (diff)
downloadgo-tangerine-7f22b59f87cfda85a14eed6481da68e3dfba44a1.tar
go-tangerine-7f22b59f87cfda85a14eed6481da68e3dfba44a1.tar.gz
go-tangerine-7f22b59f87cfda85a14eed6481da68e3dfba44a1.tar.bz2
go-tangerine-7f22b59f87cfda85a14eed6481da68e3dfba44a1.tar.lz
go-tangerine-7f22b59f87cfda85a14eed6481da68e3dfba44a1.tar.xz
go-tangerine-7f22b59f87cfda85a14eed6481da68e3dfba44a1.tar.zst
go-tangerine-7f22b59f87cfda85a14eed6481da68e3dfba44a1.zip
core/state: simplify proof methods (#17965)
This fixes the import cycle build error in core/vm tests. There is no need to refer to core/vm for a type definition.
Diffstat (limited to 'core/vm')
-rw-r--r--core/vm/interface.go10
1 files changed, 0 insertions, 10 deletions
diff --git a/core/vm/interface.go b/core/vm/interface.go
index 1ae98cf7a..fc15082f1 100644
--- a/core/vm/interface.go
+++ b/core/vm/interface.go
@@ -35,8 +35,6 @@ type StateDB interface {
SetNonce(common.Address, uint64)
GetCodeHash(common.Address) common.Hash
- GetProof(common.Address) (ProofList, error)
- GetStorageProof(common.Address, common.Hash) (ProofList, error)
GetCode(common.Address) []byte
SetCode(common.Address, []byte)
GetCodeSize(common.Address) int
@@ -80,11 +78,3 @@ type CallContext interface {
// Create a new contract
Create(env *EVM, me ContractRef, data []byte, gas, value *big.Int) ([]byte, common.Address, error)
}
-
-// MerkleProof
-type ProofList [][]byte
-
-func (n *ProofList) Put(key []byte, value []byte) error {
- *n = append(*n, value)
- return nil
-}