mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 22:26:42 +00:00
swarm/cmd: toynet bootstrap only 1 node/instance; fix checksum for dirs
This commit is contained in:
parent
85d0e34702
commit
10585b27ea
2 changed files with 6 additions and 2 deletions
|
|
@ -7,7 +7,7 @@ swarm remote-update-scripts nodes.lst
|
||||||
swarm remote-update-bin nodes.lst
|
swarm remote-update-bin nodes.lst
|
||||||
|
|
||||||
# spawn a 2-instance local cluster on each of our 10 host nodes
|
# spawn a 2-instance local cluster on each of our 10 host nodes
|
||||||
swarm remote-run nodes.lst 'swarm init 2; swarm netstatconf sworm; swarm netstatrun'
|
swarm remote-run nodes.lst 'swarm init 1; swarm netstatconf sworm; swarm netstatrun'
|
||||||
|
|
||||||
#collect enodes from all instances on all hosts
|
#collect enodes from all instances on all hosts
|
||||||
swarm remote-run nodes.lst 'swarm enode all' | tr -d '"' |grep -v running > enodes.lst
|
swarm remote-run nodes.lst 'swarm enode all' | tr -d '"' |grep -v running > enodes.lst
|
||||||
|
|
|
||||||
|
|
@ -638,7 +638,11 @@ function checkdownload {
|
||||||
elif [ -r $target ]; then
|
elif [ -r $target ]; then
|
||||||
diff -r $target $dest >/dev/null && echo PASS || echo FAIL
|
diff -r $target $dest >/dev/null && echo PASS || echo FAIL
|
||||||
else
|
else
|
||||||
exp=`checksum $dest/*`
|
if [ `ls -1 $dest|wc -l` = "1" ]; then
|
||||||
|
exp=`checksum $dest/*`
|
||||||
|
else
|
||||||
|
exp=`checksum $dest`
|
||||||
|
fi
|
||||||
if [ "$exp" = "$target" ]; then
|
if [ "$exp" = "$target" ]; then
|
||||||
echo -n PASS
|
echo -n PASS
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue