Sha256: 37e29c5bfe79c0a381c9e38505d4a066b60922a9f1fb158b52a3e405dea94740

Contents?: true

Size: 1.16 KB

Versions: 30

Compression:

Stored size: 1.16 KB

Contents

#!/bin/bash

port=$(reserve_port)

mkdir server
cd server
zold node --trace --invoice=PUSHNPULL@ffffffffffffffff --tolerate-edges --tolerate-quorum=1 \
  --host=127.0.0.1 --port=${port} --bind-port=${port} \
  --threads=0 --standalone 2>&1 &
pid=$!
trap "halt_nodes ${port}" EXIT
cd ..

wait_for_port ${port}

zold remote clean
zold remote add 127.0.0.1 ${port}
zold remote trim
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.99Z 'To save the world!'
zold propagate
zold propagate 0000000000000000
zold show
zold show 0000000000000000
zold taxes debt 0000000000000000

zold remote show
zold push --tolerate-edges --tolerate-quorum=1
zold push 0000000000000000 --tolerate-edges --tolerate-quorum=1
until zold fetch 0000000000000000 --ignore-score-weakness --tolerate-edges --tolerate-quorum=1; do
  echo 'Failed to fetch, let us try again'
  sleep 1
done
zold fetch --tolerate-edges --tolerate-quorum=1
zold diff 0000000000000000
zold merge
zold merge 0000000000000000
zold clean
zold clean 0000000000000000
zold remove

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
zold-0.31.8 fixtures/scripts/push-and-pull.sh
zold-0.31.7 fixtures/scripts/push-and-pull.sh
zold-0.31.6 fixtures/scripts/push-and-pull.sh
zold-0.31.5 fixtures/scripts/push-and-pull.sh
zold-0.31.4 fixtures/scripts/push-and-pull.sh
zold-0.31.3 fixtures/scripts/push-and-pull.sh
zold-0.31.2 fixtures/scripts/push-and-pull.sh
zold-0.31.1 fixtures/scripts/push-and-pull.sh
zold-0.31.0 fixtures/scripts/push-and-pull.sh
zold-0.30.0 fixtures/scripts/push-and-pull.sh
zold-0.29.34 fixtures/scripts/push-and-pull.sh
zold-0.29.33 fixtures/scripts/push-and-pull.sh
zold-0.29.32 fixtures/scripts/push-and-pull.sh
zold-0.29.31 fixtures/scripts/push-and-pull.sh
zold-0.29.30 fixtures/scripts/push-and-pull.sh
zold-0.29.29 fixtures/scripts/push-and-pull.sh
zold-0.29.28 fixtures/scripts/push-and-pull.sh
zold-0.29.27 fixtures/scripts/push-and-pull.sh
zold-0.29.26 fixtures/scripts/push-and-pull.sh
zold-0.29.25 fixtures/scripts/push-and-pull.sh