Skip to content

Commit

Permalink
Merge pull request #1886 from CounterpartyXCP/compose
Browse files Browse the repository at this point in the history
Fix ZMQ addresses with Docker
  • Loading branch information
ouziel-slama authored Jun 8, 2024
2 parents 52e2b1e + c6ba383 commit 18bdfcc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion counterparty-core/counterpartycore/lib/follow.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,12 @@ def get_zmq_notifications_addresses():
"Bitcoin Core ZMQ notifications must use the same address for `pubhashtx`, `pubrawtx` and `pubsequence`."
)

return notification_addresses["pubrawtx"], notification_addresses["pubrawblock"]
pubrawtx_port = notification_addresses["pubrawtx"].split(":")[-1]
pubrawblock_port = notification_addresses["pubrawblock"].split(":")[-1]
pubrawtx_address = f"tcp://{config.BACKEND_CONNECT}:{pubrawtx_port}"
pubrawblock_address = f"tcp://{config.BACKEND_CONNECT}:{pubrawblock_port}"

return pubrawtx_address, pubrawblock_address


def start_blockchain_watcher(db):
Expand Down

0 comments on commit 18bdfcc

Please sign in to comment.