mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 14:16:44 +00:00
* no more alias, swarm is executable so it can be called via ssh * environment vars now set to default, no need to preconfigure * stop method falls back to kill -9 after 10s * enode method now supplies ip addr via ipecho request * execute, options, rawoptions, setup, create-account addpeers and hive methods and subcommands * local and remote hive monitoring * gethup.sh script now merged into swarm script and nice modularised * simplify bash code and fix e2e tests in swarm/test * update-src -> update * remote-update-scripts, remote-update-bin and remote-run * local and remote monitoring of kademlia * extensive documentation in swarm/cmd/README.md swarm/network: fix hive stop issue leading to send on closed chan + minor logging fixes swarm/network/kademlia: * simplify code * now really fix prox limit adjustment + tests and comments * simplify and make readable findclosest algo code + comments * reset initial time interval settings for kaddb findbest * fix bucket replace scheme to optimise stability and availability * absolute idle peers are disconnected after maxIdleInterval
29 lines
No EOL
757 B
Bash
29 lines
No EOL
757 B
Bash
#!/bin/bash
|
|
echo "TEST swap/00:"
|
|
echo " two nodes that do not sync and do not have any funds"
|
|
echo " cannot retrieve content from each other"
|
|
|
|
dir=`dirname $0`
|
|
source $dir/../test.sh
|
|
|
|
FILE_00=/tmp/1K.0
|
|
randomfile 1 > $FILE_00
|
|
ls -l $FILE_00
|
|
mininginterval=50
|
|
key=/tmp/key
|
|
|
|
swarm init 2 --bzznosync
|
|
sleep $wait
|
|
swarm up 00 $FILE_00|tail -n1 > $key
|
|
swarm needs 00 $key $FILE_00
|
|
echo -n "node 01 cannot download file 0: "
|
|
swarm needs 01 $key $FILE_00 | tail -1| grep -ql "PASS" && echo "FAIL" || echo "PASS"
|
|
|
|
FILE_01=/tmp/1K.1
|
|
randomfile 1 > $FILE_01
|
|
swarm up 01 $FILE_01|tail -1 > $key
|
|
swarm needs 01 $key $FILE_01
|
|
echo -n "node 00 cannot download file 1: "
|
|
swarm needs 00 $key $FILE_01 | tail -1| grep -ql "PASS" && echo "FAIL" || echo "PASS"
|
|
|
|
swarm stop all |