Sha256: 6b2ba5bd0e3e7e3e9ca549a4afe6d3234c2aa05d9a337b8ca640c45e0aad9606

Contents?: true

Size: 1.06 KB

Versions: 22

Compression:

Stored size: 1.06 KB

Contents

#!/bin/bash
set -x
set -e
shopt -s expand_aliases

alias zold="$1 --ignore-global-config --trace --ignore-this-stupid-option --network=test"

port=`python -c 'import socket; s=socket.socket(); s.bind(("", 0)); print(s.getsockname()[1]); s.close()'`

mkdir server
cd server
zold node --trace --invoice=NOPREFIX@ffffffffffffffff \
  --host=localhost --port=${port} --bind-port=${port} \
  --threads=0 --standalone &
pid=$!
trap "kill -9 $pid" EXIT
cd ..

while ! nc -z localhost ${port}; do
  sleep 0.5
  ((c++)) && ((c==20)) && break
done

zold remote clean
zold remote add localhost ${port}
zold remote show

zold --public-key=id_rsa.pub create 0000000000000000
target=`zold create --public-key=id_rsa.pub`
invoice=`zold invoice ${target}`
zold pay --private-key=id_rsa 0000000000000000 ${invoice} 14.99 'To save the world!'
zold propagate 0000000000000000
zold show
zold show 0000000000000000

zold remote show
zold push 0000000000000000 --sync
zold fetch 0000000000000000 --ignore-score-weakness
zold diff 0000000000000000
zold merge 0000000000000000
zold clean 0000000000000000

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
zold-0.11.5 fixtures/scripts/push-and-pull.sh
zold-0.11.4 fixtures/scripts/push-and-pull.sh
zold-0.11.3 fixtures/scripts/push-and-pull.sh
zold-0.11.2 fixtures/scripts/push-and-pull.sh
zold-0.11.1 fixtures/scripts/push-and-pull.sh
zold-0.11 fixtures/scripts/push-and-pull.sh
zold-0.10.23 fixtures/scripts/push-and-pull.sh
zold-0.10.22 fixtures/scripts/push-and-pull.sh
zold-0.10.21 fixtures/scripts/push-and-pull.sh
zold-0.10.20 fixtures/scripts/push-and-pull.sh
zold-0.10.19 fixtures/scripts/push-and-pull.sh
zold-0.10.18 fixtures/scripts/push-and-pull.sh
zold-0.10.17 fixtures/scripts/push-and-pull.sh
zold-0.10.16 fixtures/scripts/push-and-pull.sh
zold-0.10.15 fixtures/scripts/push-and-pull.sh
zold-0.10.14 fixtures/scripts/push-and-pull.sh
zold-0.10.13 fixtures/scripts/push-and-pull.sh
zold-0.10.12 fixtures/scripts/push-and-pull.sh
zold-0.10.11 fixtures/scripts/push-and-pull.sh
zold-0.10.10 fixtures/scripts/push-and-pull.sh