diff options
author | Wei-Ning Huang <w@dexon.org> | 2019-01-14 19:59:57 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 13:50:01 +0800 |
commit | ec4a5ce9483348a16bdbf6ca06e5b6d69c7d9596 (patch) | |
tree | 31a1099d447e579683e44830d540dfd690194f29 /test | |
parent | 3994913191e2198b441dd3916c50f3c692fe5fce (diff) | |
download | dexon-ec4a5ce9483348a16bdbf6ca06e5b6d69c7d9596.tar dexon-ec4a5ce9483348a16bdbf6ca06e5b6d69c7d9596.tar.gz dexon-ec4a5ce9483348a16bdbf6ca06e5b6d69c7d9596.tar.bz2 dexon-ec4a5ce9483348a16bdbf6ca06e5b6d69c7d9596.tar.lz dexon-ec4a5ce9483348a16bdbf6ca06e5b6d69c7d9596.tar.xz dexon-ec4a5ce9483348a16bdbf6ca06e5b6d69c7d9596.tar.zst dexon-ec4a5ce9483348a16bdbf6ca06e5b6d69c7d9596.zip |
params: write dMoment into ChainConfig (#150)
Diffstat (limited to 'test')
-rw-r--r-- | test/genesis.json | 1 | ||||
-rwxr-xr-x | test/run_test.sh | 3 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/genesis.json b/test/genesis.json index ce3526883..efa2727ad 100644 --- a/test/genesis.json +++ b/test/genesis.json @@ -1,6 +1,7 @@ { "config": { "chainId": 237, + "dMoment": 1547480026, "homesteadBlock": 0, "daoForkBlock": 0, "daoForkSupport": true, diff --git a/test/run_test.sh b/test/run_test.sh index 71b2715dd..a42e27142 100755 --- a/test/run_test.sh +++ b/test/run_test.sh @@ -22,6 +22,7 @@ rm -f log-latest ln -s $logsdir log-latest let dmoment=`date +%s`+7 +sed -i "s/\"dMoment\": [0-9]\+,/\"dMoment\": $dmoment,/g" $GENESIS # A standalone RPC server for accepting RPC requests. datadir=$PWD/Dexon.rpc @@ -37,7 +38,6 @@ $GDEX \ --ws --wsapi=eth,net,web3,debug \ --wsaddr=0.0.0.0 --wsport=8546 \ --wsorigins='*' --rpcvhosts='*' --rpccorsdomain="*" \ - --dmoment=$dmoment \ > $logsdir/gdex.rpc.log 2>&1 & # Nodes @@ -57,7 +57,6 @@ for i in $(seq 0 3); do --ws --wsapi=eth,net,web3,debug \ --wsaddr=0.0.0.0 --wsport=$((8548 + $i * 2)) \ --wsorigins='*' --rpcvhosts='*' --rpccorsdomain="*" \ - --dmoment=$dmoment \ --pprof --pprofaddr=localhost --pprofport=$((6060 + $i)) \ > $logsdir/gdex.$i.log 2>&1 & done |