Sha256: 09a84ab8c8b656aa6f1a3953e2e59d864323bdac18bec83274d03d6b4e8864e0

Contents?: true

Size: 937 Bytes

Versions: 2

Compression:

Stored size: 937 Bytes

Contents

#!/bin/bash

function start_node {
  port=$1
  mkdir ${port}
  cd ${port}
  zold node --trace --invoice=SPREADWALLETS@ffffffffffffffff \
    --host=localhost --port=${port} --bind-port=${port} --dump-errors \
    --standalone --no-metronome --halt-code=test \
    --threads=0 --verbose --pretty=full 2>&1 &
  pid=$!
  echo ${pid} > pid
  cd ..
  wait_for_url "http://localhost:${port}/"
}

port=$(reserve_port)
start_node $port
trap "halt_nodes ${port}" EXIT
zold remote clean
zold remote add localhost ${port}

zold --public-key=id_rsa.pub create 0000000000000000
zold --public-key=id_rsa.pub create abcdabcdabcdabcd
zold pay --private-key=id_rsa 0000000000000000 abcdabcdabcdabcd 4.95 'To test'
zold push 0000000000000000
zold remove 0000000000000000

# zold-stress --rounds=8 --wait=5 --threads=32 --pool=32 --batch=64 --private-key=id_rsa --verbose
zold-stress --rounds=4 --wait=5 --threads=4 --pool=4 --batch=4 --private-key=id_rsa

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
zold-stress-0.5.3 fixtures/scripts/simple-stress.sh
zold-stress-0.5.2 fixtures/scripts/simple-stress.sh