add Dockerfile that can run net-test scripts, add 500 logging to faucet.sh, add fallback fee

This commit is contained in:
Aaron Blankstein
2020-10-20 07:58:09 -05:00
parent 0561ab8d66
commit a8a24571d4
3 changed files with 23 additions and 1 deletions

View File

@@ -43,6 +43,7 @@ http_401() {
http_500() {
local ERR="$1"
local ERR_LEN=${#ERR}
log "500 error: ${ERR}"
printf "HTTP/1.0 500 Internal Server error\r\nContent-Length: $ERR_LEN\r\nContent-Type: text/plain\r\n\r\n$ERR"
}

View File

@@ -61,7 +61,7 @@ start_bitcoind() {
logln "ok"
log "Starting bitcoind..."
bitcoind -conf="$BITCOIN_CONF" >"$BITCOIN_LOGFILE" 2>&1 &
bitcoind -fallbackfee=0.0002 -conf="$BITCOIN_CONF" >"$BITCOIN_LOGFILE" 2>&1 &
local BITCOIN_PID=$!
logln "PID $BITCOIN_PID"