Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bitcoin-signet/blocknotify:default ADDRESS or $1 #218

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion bitcoin-signet/blocknotify
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
#!/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
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
Expand Down
Loading