diff options
author | Felix Lange <fjl@twurst.com> | 2014-11-01 01:40:32 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2014-11-01 01:52:58 +0800 |
commit | f3473312ba90b37b9a4100592a8c4d5d5bf245b7 (patch) | |
tree | efc14c86ce3c9b45bcc09c84dc9fbed79c089cb9 /pow | |
parent | 5af4ff985dc43b648bdc96394a3bd96d9658ae0a (diff) | |
download | dexon-f3473312ba90b37b9a4100592a8c4d5d5bf245b7.tar.gz dexon-f3473312ba90b37b9a4100592a8c4d5d5bf245b7.tar.zst dexon-f3473312ba90b37b9a4100592a8c4d5d5bf245b7.zip |
all: fix rename breakage
Diffstat (limited to 'pow')
-rw-r--r-- | pow/ar/block.go | 4 | ||||
-rw-r--r-- | pow/ar/pow_test.go | 8 | ||||
-rw-r--r-- | pow/ar/rnd.go | 8 |
3 files changed, 10 insertions, 10 deletions
diff --git a/pow/ar/block.go b/pow/ar/block.go index 541092f7e..2124b53b4 100644 --- a/pow/ar/block.go +++ b/pow/ar/block.go @@ -3,10 +3,10 @@ package ar import ( "math/big" - "github.com/ethereum/go-ethereum/ethtrie" + "github.com/ethereum/go-ethereum/trie" ) type Block interface { - Trie() *ethtrie.Trie + Trie() *trie.Trie Diff() *big.Int } diff --git a/pow/ar/pow_test.go b/pow/ar/pow_test.go index 3db9659e0..b1ebf9281 100644 --- a/pow/ar/pow_test.go +++ b/pow/ar/pow_test.go @@ -6,17 +6,17 @@ import ( "testing" "github.com/ethereum/go-ethereum/ethdb" - "github.com/ethereum/go-ethereum/ethtrie" + "github.com/ethereum/go-ethereum/trie" ) type TestBlock struct { - trie *ethtrie.Trie + trie *trie.Trie } func NewTestBlock() *TestBlock { db, _ := ethdb.NewMemDatabase() return &TestBlock{ - trie: ethtrie.New(db, ""), + trie: trie.New(db, ""), } } @@ -24,7 +24,7 @@ func (self *TestBlock) Diff() *big.Int { return b(10) } -func (self *TestBlock) Trie() *ethtrie.Trie { +func (self *TestBlock) Trie() *trie.Trie { return self.trie } diff --git a/pow/ar/rnd.go b/pow/ar/rnd.go index 7dbd99373..c62f4e062 100644 --- a/pow/ar/rnd.go +++ b/pow/ar/rnd.go @@ -3,7 +3,7 @@ package ar import ( "math/big" - "github.com/ethereum/go-ethereum/ethcrypto" + "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/ethutil" ) @@ -21,16 +21,16 @@ func (self ByteNode) Big() *big.Int { func Sha3(v interface{}) *big.Int { if b, ok := v.(*big.Int); ok { - return ethutil.BigD(ethcrypto.Sha3(b.Bytes())) + return ethutil.BigD(crypto.Sha3(b.Bytes())) } else if b, ok := v.([]interface{}); ok { - return ethutil.BigD(ethcrypto.Sha3(ethutil.Encode(b))) + return ethutil.BigD(crypto.Sha3(ethutil.Encode(b))) } else if s, ok := v.([]*big.Int); ok { v := make([]interface{}, len(s)) for i, b := range s { v[i] = b } - return ethutil.BigD(ethcrypto.Sha3(ethutil.Encode(v))) + return ethutil.BigD(crypto.Sha3(ethutil.Encode(v))) } return nil |