-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bitcoin-signet/blocknotify: while loop
- Loading branch information
1 parent
bddba41
commit bfb9213
Showing
1 changed file
with
9 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
#!/bin/bash | ||
+#This file is executed when a new block is recieved | ||
+#It can be used to automate things in the container | ||
ADDRESS=tb1q550ph67a0qztgg7zx5lxnuj6qj20wxav2mx47k | ||
play-getcoins -a "$(play-getcoins -a $ADDRESS -r true)" > /dev/null 2>&1 | ||
#This file is executed when a new block is recieved | ||
#It can be used to automate things in the container | ||
PLAY_BITCOIN_ID=$(play-bitcoin id); | ||
while [ ! -z "$PLAY_BITCOIN" ]; do | ||
ADDRESS=tb1q550ph67a0qztgg7zx5lxnuj6qj20wxav2mx47k && \ | ||
play-getcoins -a "$(play-getcoins -a $ADDRESS -r true)" > /dev/null 2>&1; | ||
PLAY_BITCOIN_ID=$(play-bitcoin id); | ||
echo $PLAY_BITCOIN_ID | ||
done |