diff options
author | Wei-Ning Huang <aitjcize@gmail.com> | 2018-11-12 11:34:02 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 21:32:53 +0800 |
commit | 07f8cae8805eff6bb4b5a0d82915ad8fb6aeb347 (patch) | |
tree | e0524472a70c4a236b206e7f5454d3d0d709c1ff /test | |
parent | f5a74ed705ebd6f58d724b007de8718f2da6aac2 (diff) | |
download | dexon-07f8cae8805eff6bb4b5a0d82915ad8fb6aeb347.tar.gz dexon-07f8cae8805eff6bb4b5a0d82915ad8fb6aeb347.tar.zst dexon-07f8cae8805eff6bb4b5a0d82915ad8fb6aeb347.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 \ |