diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-11-03 22:56:32 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-12 17:27:17 +0800 |
commit | 433b77e15f43f9d118e5def7bc4902e0ed522efa (patch) | |
tree | 0d727d74bd6a144543d7d4c63f3a9b43eea203d2 | |
parent | 43b14136118d600f14a4ae706557fa14401047d2 (diff) | |
download | go-tangerine-433b77e15f43f9d118e5def7bc4902e0ed522efa.tar go-tangerine-433b77e15f43f9d118e5def7bc4902e0ed522efa.tar.gz go-tangerine-433b77e15f43f9d118e5def7bc4902e0ed522efa.tar.bz2 go-tangerine-433b77e15f43f9d118e5def7bc4902e0ed522efa.tar.lz go-tangerine-433b77e15f43f9d118e5def7bc4902e0ed522efa.tar.xz go-tangerine-433b77e15f43f9d118e5def7bc4902e0ed522efa.tar.zst go-tangerine-433b77e15f43f9d118e5def7bc4902e0ed522efa.zip |
test: disable standalone RPC server as BroadcastBlock currently cause forking
-rw-r--r-- | dex/handler.go | 4 | ||||
-rwxr-xr-x | test/run_test.sh | 16 |
2 files changed, 9 insertions, 11 deletions
diff --git a/dex/handler.go b/dex/handler.go index 00d2fb78c..68c682eda 100644 --- a/dex/handler.go +++ b/dex/handler.go @@ -1046,9 +1046,7 @@ func (pm *ProtocolManager) peerSetLoop() { for { select { - case event := <-pm.chainHeadCh: - pm.BroadcastBlock(event.Block, true) - + case <-pm.chainHeadCh: newRound := pm.gov.LenCRS() - 1 log.Trace("new round", "round", newRound) if newRound == round { diff --git a/test/run_test.sh b/test/run_test.sh index c07da0f8e..66387e703 100755 --- a/test/run_test.sh +++ b/test/run_test.sh @@ -15,14 +15,14 @@ rm -f log-latest ln -s $logsdir log-latest # A standalone RPC server for accepting RPC requests. -datadir=$PWD/Dexon.rpc -rm -rf $datadir -$GDEX --datadir=$datadir init genesis.json -$GDEX --verbosity=4 --gcmode=archive --datadir=$datadir \ - --rpc --rpcapi=eth,net,web3,debug --rpcaddr=0.0.0.0 --rpcport=8543 \ - --ws --wsapi=eth,net,web3,debug --wsaddr=0.0.0.0 --wsport=8544 \ - --wsorigins='*' --rpcvhosts='*' --rpccorsdomain="*" \ - > $logsdir/gdex.rpc.log 2>&1 & +# datadir=$PWD/Dexon.rpc +# rm -rf $datadir +# $GDEX --datadir=$datadir init genesis.json +# $GDEX --verbosity=4 --gcmode=archive --datadir=$datadir \ +# --rpc --rpcapi=eth,net,web3,debug --rpcaddr=0.0.0.0 --rpcport=8543 \ +# --ws --wsapi=eth,net,web3,debug --wsaddr=0.0.0.0 --wsport=8544 \ +# --wsorigins='*' --rpcvhosts='*' --rpccorsdomain="*" \ +# > $logsdir/gdex.rpc.log 2>&1 & # Nodes for i in $(seq 0 3); do |