Skip to content

Commit 8b3daf8

Browse files
committed
zmq: serve block hashes by default and fix Docker tag warning
1 parent aeacf34 commit 8b3daf8

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Dockerfile

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG ALPINE_BUILDER_VERSION
1+
ARG ALPINE_BUILDER_VERSION=3.18
22

33
FROM alpine:3.20 AS verifier
44

@@ -106,7 +106,7 @@ EXPOSE 8333 18333 18444 38333
106106
# RPC interface (mainnet, testnet, regtest & signet respectively)
107107
EXPOSE 8332 18332 18443 38332
108108

109-
# ZMQ ports (for blocks & transactions respectively)
110-
EXPOSE 28332 28333
109+
# ZMQ ports (for block hashes, raw blocks & raw transactions respectively)
110+
EXPOSE 8443 28332 28333
111111

112-
ENTRYPOINT ["/usr/local/bin/bitcoind", "-nodebuglogfile", "-zmqpubrawblock=tcp://0.0.0.0:28332", "-zmqpubrawtx=tcp://0.0.0.0:28333"]
112+
ENTRYPOINT ["/usr/local/bin/bitcoind", "-nodebuglogfile", "-zmqpubhashblock=tcp://0.0.0.0:8443", "-zmqpubrawblock=tcp://0.0.0.0:28332", "-zmqpubrawtx=tcp://0.0.0.0:28333"]

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This is the images' default `ENTRYPOINT`.
1111
Adjust the `CMD` if you want to run the bitcoind daemon with a different configuration.
1212

1313
```dockerfile
14-
ENTRYPOINT ["/usr/local/bin/bitcoind", "-nodebuglogfile", "-zmqpubrawblock=tcp://0.0.0.0:28332", "-zmqpubrawtx=tcp://0.0.0.0:28333"]
14+
ENTRYPOINT ["/usr/local/bin/bitcoind", "-nodebuglogfile", "-zmqpubhashblock=tcp://0.0.0.0:8443", "-zmqpubrawblock=tcp://0.0.0.0:28332", "-zmqpubrawtx=tcp://0.0.0.0:28333"]
1515
```
1616

1717
Customization example based on Docker Compose v2:

0 commit comments

Comments
 (0)