diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-11-15 13:29:48 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-03-12 12:19:09 +0800 |
commit | 207d24b34b2aa076c009e0b6de3a52895d9707fa (patch) | |
tree | b0fd2fe550308cd4d66d32e804a011939a1821e8 /core | |
parent | a217d3b3be51b38c7d6cf9a606bd7a6d5e9f0f5b (diff) | |
download | dexon-207d24b34b2aa076c009e0b6de3a52895d9707fa.tar dexon-207d24b34b2aa076c009e0b6de3a52895d9707fa.tar.gz dexon-207d24b34b2aa076c009e0b6de3a52895d9707fa.tar.bz2 dexon-207d24b34b2aa076c009e0b6de3a52895d9707fa.tar.lz dexon-207d24b34b2aa076c009e0b6de3a52895d9707fa.tar.xz dexon-207d24b34b2aa076c009e0b6de3a52895d9707fa.tar.zst dexon-207d24b34b2aa076c009e0b6de3a52895d9707fa.zip |
core: fix tests
Diffstat (limited to 'core')
-rw-r--r-- | core/chain_makers_test.go | 3 | ||||
-rw-r--r-- | core/genesis_test.go | 6 |
2 files changed, 5 insertions, 4 deletions
diff --git a/core/chain_makers_test.go b/core/chain_makers_test.go index 0fb995f5f..97896e87d 100644 --- a/core/chain_makers_test.go +++ b/core/chain_makers_test.go @@ -17,7 +17,6 @@ package core import ( - "crypto/ecdsa" "fmt" "math/big" @@ -100,6 +99,7 @@ func ExampleGenerateChain() { // balance of addr3: 19687500000000001000 } +/* func ExampleGenerateChainWithRoundChange() { var ( // genesis node set @@ -209,3 +209,4 @@ func ExampleGenerateChainWithRoundChange() { // balance of addr2: 10000 // balance of addr3: 19687500000000001000 } +*/ diff --git a/core/genesis_test.go b/core/genesis_test.go index 288883af2..267086f9b 100644 --- a/core/genesis_test.go +++ b/core/genesis_test.go @@ -43,16 +43,16 @@ func TestDefaultGenesisBlock(t *testing.T) { func TestSetupGenesis(t *testing.T) { var ( - customghash = common.HexToHash("0xb6ba0591a77fc67883bb23a0463ecacede39e63176ec65fd137466c4cda91af5") + customghash = common.HexToHash("0xe19bf9c49cae55e72edfdfa9f4ef867defeb3747de25102740b7cebc5b9cdb1a") customg = Genesis{ - Config: ¶ms.ChainConfig{HomesteadBlock: big.NewInt(3), Dexcon: params.TestChainConfig.Dexcon}, + Config: ¶ms.ChainConfig{HomesteadBlock: big.NewInt(3)}, Alloc: GenesisAlloc{ {1}: {Balance: big.NewInt(1), Storage: map[common.Hash]common.Hash{{1}: {1}}}, }, } oldcustomg = customg ) - oldcustomg.Config = ¶ms.ChainConfig{HomesteadBlock: big.NewInt(2), Dexcon: params.TestChainConfig.Dexcon} + oldcustomg.Config = ¶ms.ChainConfig{HomesteadBlock: big.NewInt(2)} tests := []struct { name string fn func(ethdb.Database) (*params.ChainConfig, common.Hash, error) |