diff --git a/bin/toychain b/bin/toychain new file mode 100755 index 0000000..130360d --- /dev/null +++ b/bin/toychain @@ -0,0 +1,112 @@ +#!/bin/sh + +pgm="${0##*/}" +what="${1:-usage}" +# vim: syntax=sh +# +echo "--- # $pgm" + +if [ "x$what" = 'xusage' ]; then +cat < transcript.log 2>&1 + git checkout $tag # 1> transcript.log 2>&1 + echo "---" +} + +tclog() { + echo "$pgm: transcript log" + tail -f transctip.log + echo "---" +} + +tctest() { + tc="$2" + echo "$pgm: running $1 $tc" + echo "---" +} + +tcrun() { + cmd="$@" + echo "$pgm: running $cmd" + $cmd + echo "..." +} + +tcdebug() { + shift; + cmd="$@" + echo "$pgm: running $cmd in debug mode..." + echo "---" +} + + +main $@; +exit $?; +true; # $Source: /my/shell/scripts/toychain.sh $ diff --git a/config.yml b/config.yml index 5842fe5..4b0f997 100644 --- a/config.yml +++ b/config.yml @@ -1,6 +1,9 @@ --- # toychain's config version: 1.01 chain: toychain +apiver: '0.0' +port: 8089 + # p2p network = api+1 apis: - 127.0.0.1:8091 @@ -11,5 +14,9 @@ apis: # block parameters : bkver: 0 -difficulty: 5 bkreward: 100 +# Proof of Work option +difficulty: 5 +maxdiff: 7 +# CAstore options +trackmode: 1 diff --git a/genesis.yml b/genesis.yml index 62f4751..754a9de 100644 --- a/genesis.yml +++ b/genesis.yml @@ -6,7 +6,7 @@ data: comment: "This is the genesis block" meta: seed: 0xb3560762 - salt: 442360558864191384 # used in address computation + salt: ~ # used in address computation txroot: ~ audit: peerid: QmcfHufAK9ErQ9ZKJF7YX68KntYYBJngkGDoVKcZEJyRve diff --git a/secrets/keys.yml b/secrets/keys.yml index 45c5918..7047ffe 100644 Binary files a/secrets/keys.yml and b/secrets/keys.yml differ