aboutsummaryrefslogtreecommitdiffstats
path: root/sampledata/bitcoin
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-02-06 16:48:13 -0800
committerAdam Soltys <[email protected]>2023-02-06 16:48:13 -0800
commit9c667055c6367e1b2e239686e72f52995679a47e (patch)
tree0b1d4aee51ec2d4e92d08a9d1404ba4e2ecd462a /sampledata/bitcoin
parent15294844dbc8e73b4d1e92008a7eebc6b86b9ec5 (diff)
parent6f5602d112b68adb7452abf3047f20c32e7725b6 (diff)
downloadcoinos-server-9c667055c6367e1b2e239686e72f52995679a47e.tar.gz
coinos-server-9c667055c6367e1b2e239686e72f52995679a47e.zip
Merge branch 'master' into test
Diffstat (limited to 'sampledata/bitcoin')
-rw-r--r--sampledata/bitcoin/bitcoin.conf22
-rwxr-xr-xsampledata/bitcoin/transaction.sh2
2 files changed, 24 insertions, 0 deletions
diff --git a/sampledata/bitcoin/bitcoin.conf b/sampledata/bitcoin/bitcoin.conf
new file mode 100644
index 00000000..3aa44186
--- /dev/null
+++ b/sampledata/bitcoin/bitcoin.conf
@@ -0,0 +1,22 @@
+regtest=1
+testnet=0
+dnsseed=0
+upnp=0
+
+[regtest]
+fallbackfee=0.00002
+server=1
+txindex=1
+
+rpcuser=admin1
+rpcpassword=123
+rpcallowip=0.0.0.0/0
+rpcbind=0.0.0.0
+rpcwallet=coinos
+
+wallet=coinos
+wallet=external
+walletnotify=/home/bitcoin/.bitcoin/transaction.sh %s %w
+
+zmqpubrawblock=tcp://0.0.0.0:18506
+zmqpubrawtx=tcp://0.0.0.0:18507
diff --git a/sampledata/bitcoin/transaction.sh b/sampledata/bitcoin/transaction.sh
new file mode 100755
index 00000000..e44789d1
--- /dev/null
+++ b/sampledata/bitcoin/transaction.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+wget -O- --post-data='{"txid": "'$1'", "wallet": "'$2'"}' --header='Content-Type:application/json' 'http://app:3119/bitcoin'