diff options
author | Wei-Ning Huang <aitjcize@gmail.com> | 2018-11-12 11:34:02 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-03-12 12:19:09 +0800 |
commit | 3d44d52cc620d1730a48c3ef8c1ea4f76131d920 (patch) | |
tree | c21a7643ba7b8b05e5756e084a1362c9153808c3 /test | |
parent | efaa2aaf3bef419c18eccc5ea33555d41060dd98 (diff) | |
download | dexon-3d44d52cc620d1730a48c3ef8c1ea4f76131d920.tar dexon-3d44d52cc620d1730a48c3ef8c1ea4f76131d920.tar.gz dexon-3d44d52cc620d1730a48c3ef8c1ea4f76131d920.tar.bz2 dexon-3d44d52cc620d1730a48c3ef8c1ea4f76131d920.tar.lz dexon-3d44d52cc620d1730a48c3ef8c1ea4f76131d920.tar.xz dexon-3d44d52cc620d1730a48c3ef8c1ea4f76131d920.tar.zst dexon-3d44d52cc620d1730a48c3ef8c1ea4f76131d920.zip |
params: fix genesis block config and use testnet for test (#10)
Diffstat (limited to 'test')
-rw-r--r-- | test/genesis.json | 20 | ||||
-rwxr-xr-x | test/run_test.sh | 5 |
2 files changed, 15 insertions, 10 deletions
diff --git a/test/genesis.json b/test/genesis.json index 32a3bcfa0..8a4761e93 100644 --- a/test/genesis.json +++ b/test/genesis.json @@ -1,33 +1,35 @@ { "config": { - "chainId": 237, + "chainId": 238, "homesteadBlock": 0, + "daoForkBlock": 0, + "daoForkSupport": true, "eip150Block": 0, "eip150Hash": "0x0000000000000000000000000000000000000000000000000000000000000000", "eip155Block": 0, "eip158Block": 0, + "byzantiumBlock": 0, "dexcon": { "genesisCRSText": "In DEXON, we trust.", "owner": "0xBF8C48A620bacc46907f9B89732D25E47A2D7Cf7", - "blockReward": "1000000000000000000", + "blockReward": "0xde0b6b3a7640000", "blockGasLimit": 80000000, "numChains": 4, "lambdaBA": 250, - "lambdaDKG": 4000, + "lambdaDKG": 2500, "k": 0, "phiRatio": 667000, "notarySetSize": 4, "dkgSetSize": 4, "roundInterval": 600000, - "minBlockInterval": 900, - "maxBlockInterval": 1100 + "minBlockInterval": 900 } }, "nonce": "0x42", - "timestamp": "0x596a5b14", - "extraData": "0x0000000000000000000000000000000000000000000000000000000000000000", - "gasLimit": "0x2fefd800", - "difficulty": "0x20000", + "timestamp": "0x0", + "extraData": "0x3535353535353535353535353535353535353535353535353535353535353535", + "gasLimit": "0x7a1200", + "difficulty": "0x1", "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000", "coinbase": "0x0000000000000000000000000000000000000000", "alloc": { diff --git a/test/run_test.sh b/test/run_test.sh index 66387e703..219157ed9 100755 --- a/test/run_test.sh +++ b/test/run_test.sh @@ -29,8 +29,11 @@ for i in $(seq 0 3); do datadir=$PWD/Dexon.$i rm -rf $datadir $GDEX --datadir=$datadir init genesis.json - $GDEX --verbosity=4 --gcmode=archive \ + $GDEX \ + --testnet \ --bp \ + --verbosity=4 \ + --gcmode=archive \ --datadir=$datadir --nodekey=test$i.nodekey \ --port=$((30305 + $i)) \ --rpc --rpcapi=eth,net,web3,debug \ |