aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/genesis.go
diff options
context:
space:
mode:
authorzelig <viktor.tron@gmail.com>2014-06-30 01:30:05 +0800
committerzelig <viktor.tron@gmail.com>2014-06-30 01:30:05 +0800
commitdabaa4cce01586fd8b1b9314073a1d26f35355c8 (patch)
treefff48b2c62a1d717a7d95ffb99e9eb1d99dbf7bb /ethchain/genesis.go
parent707d413761927f5ad95298e666e297b820ad0901 (diff)
downloadgo-tangerine-dabaa4cce01586fd8b1b9314073a1d26f35355c8.tar
go-tangerine-dabaa4cce01586fd8b1b9314073a1d26f35355c8.tar.gz
go-tangerine-dabaa4cce01586fd8b1b9314073a1d26f35355c8.tar.bz2
go-tangerine-dabaa4cce01586fd8b1b9314073a1d26f35355c8.tar.lz
go-tangerine-dabaa4cce01586fd8b1b9314073a1d26f35355c8.tar.xz
go-tangerine-dabaa4cce01586fd8b1b9314073a1d26f35355c8.tar.zst
go-tangerine-dabaa4cce01586fd8b1b9314073a1d26f35355c8.zip
change all modified calls to ethtrie, ethutil and ethcrypto functions
Diffstat (limited to 'ethchain/genesis.go')
-rw-r--r--ethchain/genesis.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/ethchain/genesis.go b/ethchain/genesis.go
index 359c47c26..54a3bc766 100644
--- a/ethchain/genesis.go
+++ b/ethchain/genesis.go
@@ -1,6 +1,7 @@
package ethchain
import (
+ "github.com/ethereum/eth-go/ethcrypto"
"github.com/ethereum/eth-go/ethutil"
"math/big"
)
@@ -11,13 +12,13 @@ import (
var ZeroHash256 = make([]byte, 32)
var ZeroHash160 = make([]byte, 20)
-var EmptyShaList = ethutil.Sha3Bin(ethutil.Encode([]interface{}{}))
+var EmptyShaList = ethcrypto.Sha3Bin(ethutil.Encode([]interface{}{}))
var GenesisHeader = []interface{}{
// Previous hash (none)
ZeroHash256,
// Sha of uncles
- ethutil.Sha3Bin(ethutil.Encode([]interface{}{})),
+ ethcrypto.Sha3Bin(ethutil.Encode([]interface{}{})),
// Coinbase
ZeroHash160,
// Root state
@@ -39,7 +40,7 @@ var GenesisHeader = []interface{}{
// Extra
nil,
// Nonce
- ethutil.Sha3Bin(big.NewInt(42).Bytes()),
+ ethcrypto.Sha3Bin(big.NewInt(42).Bytes()),
}
var Genesis = []interface{}{GenesisHeader, []interface{}{}, []interface{}{}}