aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorWei-Ning Huang <aitjcize@gmail.com>2018-11-12 11:34:02 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-06-12 17:27:18 +0800
commit806fb7e2ee7aa29b4354fd90c9a9f3c767362e4a (patch)
tree65f6c90c54379c0fbc50c5a4aa4d2fc5161ad042 /test
parentef0fdd492259734483078160d56511297d41a04e (diff)
downloadgo-tangerine-806fb7e2ee7aa29b4354fd90c9a9f3c767362e4a.tar
go-tangerine-806fb7e2ee7aa29b4354fd90c9a9f3c767362e4a.tar.gz
go-tangerine-806fb7e2ee7aa29b4354fd90c9a9f3c767362e4a.tar.bz2
go-tangerine-806fb7e2ee7aa29b4354fd90c9a9f3c767362e4a.tar.lz
go-tangerine-806fb7e2ee7aa29b4354fd90c9a9f3c767362e4a.tar.xz
go-tangerine-806fb7e2ee7aa29b4354fd90c9a9f3c767362e4a.tar.zst
go-tangerine-806fb7e2ee7aa29b4354fd90c9a9f3c767362e4a.zip
params: fix genesis block config and use testnet for test (#10)
Diffstat (limited to 'test')
-rw-r--r--test/genesis.json20
-rwxr-xr-xtest/run_test.sh5
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 \