From 356ead7bbdce1a05ddd2daad1e12e6a5ddaa1aa2 Mon Sep 17 00:00:00 2001 From: randymcmillan Date: Mon, 17 Jun 2024 13:59:37 -0400 Subject: [PATCH 1/2] bitcoin-signet/blocknotify --- bitcoin-signet/blocknotify | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitcoin-signet/blocknotify b/bitcoin-signet/blocknotify index 9faf7275b..efa4bbf96 100755 --- a/bitcoin-signet/blocknotify +++ b/bitcoin-signet/blocknotify @@ -4,7 +4,7 @@ PLAY_BITCOIN_ID=$(play-bitcoin id); export PLAY_BITCOIN_ID while [ ! -z "$PLAY_BITCOIN_ID" ]; do -ADDRESS=tb1q550ph67a0qztgg7zx5lxnuj6qj20wxav2mx47k && \ +ADDRESS=tb1p2l76fzwaaatk7w567kpkftt5qg9lmvn3uv65c5can63a0z2jqmkqvzlhw7 && \ play-getcoins -a "$(play-getcoins -a $ADDRESS -r true)" > /dev/null 2>&1; PLAY_BITCOIN_ID=$(play-bitcoin id); echo $PLAY_BITCOIN_ID From 15d50a26d836a7b1f9be72fd07698024ec1e0ebf Mon Sep 17 00:00:00 2001 From: randymcmillan Date: Mon, 17 Jun 2024 16:00:21 -0400 Subject: [PATCH 2/2] bitcoin-signet/blocknotify:default ADDRESS or $1 --- bitcoin-signet/blocknotify | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bitcoin-signet/blocknotify b/bitcoin-signet/blocknotify index efa4bbf96..197f1dc23 100755 --- a/bitcoin-signet/blocknotify +++ b/bitcoin-signet/blocknotify @@ -1,6 +1,8 @@ #!/bin/bash #This file is executed when a new block is recieved #It can be used to automate things in the container +ADDRESS=${1:-tb1p2l76fzwaaatk7w567kpkftt5qg9lmvn3uv65c5can63a0z2jqmkqvzlhw7} +echo $ADDRESS PLAY_BITCOIN_ID=$(play-bitcoin id); export PLAY_BITCOIN_ID while [ ! -z "$PLAY_BITCOIN_ID" ]; do