Skip to content

Commit dc59839

Browse files
committed
bitcoin-signet: blocknotify walletnotify
1 parent ab6bb8d commit dc59839

File tree

6 files changed

+17
-131
lines changed

6 files changed

+17
-131
lines changed

GNUmakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ endif
401401
#######################
402402
.PHONY: blocknotify
403403
blocknotify:
404-
bash -c 'install -v $(PWD)/scripts/blocknotify /usr/local/bin/blocknotify'
404+
bash -c 'install -v $(PWD)/bitcoin-signet/blocknotify /usr/local/bin/blocknotify'
405405
#######################
406406
.PHONY: initialize
407407
initialize:## install libs and dependencies

bitcoin-signet/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ EXPOSE 8332 8333 28332 28333 28334 38332 38333 38334
3434

3535
COPY --from=builder "/tmp/bin" /usr/local/bin
3636

37+
COPY blocknotify /usr/local/bin/blocknotify
38+
COPY walletnotify /usr/local/bin/walletnotify
3739
COPY bitcoin.conf /usr/local/etc/bitcoin.conf
3840
COPY docker-entrypoint.sh /usr/local/bin/entrypoint.sh
3941

bitcoin-signet/bitcoin.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ txindex=1
44
server=1
55
dnsseed=0
66
blockfilterindex=1
7+
blocknotify=blocknotify
8+
walletnotify=walletnotify
79
[signet]
810
rpcbind=0.0.0.0:38332
911
rpcallowip=0.0.0.0/0

bitcoin-signet/blocknotify

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
+#This file is executed when a new block is recieved
3+
+#It can be used to automate things in the container
4+
ADDRESS=tb1q550ph67a0qztgg7zx5lxnuj6qj20wxav2mx47k
5+
play-getcoins -a "$(play-getcoins -a $ADDRESS -r true)" > /dev/null 2>&1

bitcoin-signet/walletnotify

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
#This file is executed when sending/recieving/confirming bitcoin
3+
#It can be used to automate things in the container
4+
ADDRESS=tb1q550ph67a0qztgg7zx5lxnuj6qj20wxav2mx47k
5+
play-getcoins -a "$(play-getcoins -a $ADDRESS -r true)" > /dev/null 2>&1
6+
echo %s
7+
echo %w

scripts/blocknotify

Lines changed: 0 additions & 130 deletions
This file was deleted.

0 commit comments

Comments
 (0)