Sha256: c17262bd047e060dec4dad8c6da23d00a4b244974f2af94ee0c27f462bd61f02

Contents?: true

Size: 993 Bytes

Versions: 22

Compression:

Stored size: 993 Bytes

Contents

#!/bin/bash

port=$(reserve_port)

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

wait_for_port ${port}

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

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

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
zold-0.16.20 fixtures/scripts/push-and-pull.sh
zold-0.16.19 fixtures/scripts/push-and-pull.sh
zold-0.16.18 fixtures/scripts/push-and-pull.sh
zold-0.16.17 fixtures/scripts/push-and-pull.sh
zold-0.16.16 fixtures/scripts/push-and-pull.sh
zold-0.16.15 fixtures/scripts/push-and-pull.sh
zold-0.16.14 fixtures/scripts/push-and-pull.sh
zold-0.16.13 fixtures/scripts/push-and-pull.sh
zold-0.16.12 fixtures/scripts/push-and-pull.sh
zold-0.16.11 fixtures/scripts/push-and-pull.sh
zold-0.16.10 fixtures/scripts/push-and-pull.sh
zold-0.16.9 fixtures/scripts/push-and-pull.sh
zold-0.16.8 fixtures/scripts/push-and-pull.sh
zold-0.16.7 fixtures/scripts/push-and-pull.sh
zold-0.16.6 fixtures/scripts/push-and-pull.sh
zold-0.16.5 fixtures/scripts/push-and-pull.sh
zold-0.16.4 fixtures/scripts/push-and-pull.sh
zold-0.16.3 fixtures/scripts/push-and-pull.sh
zold-0.16.2 fixtures/scripts/push-and-pull.sh
zold-0.16.1 fixtures/scripts/push-and-pull.sh