Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does this support zeromq? #106

Open
encryptblockr opened this issue Nov 29, 2022 · 7 comments
Open

Does this support zeromq? #106

encryptblockr opened this issue Nov 29, 2022 · 7 comments

Comments

@encryptblockr
Copy link

Trying to setup websocket connection to bitcoin node
based on the zeromq documentation here https://github.com/bitcoin/bitcoin/blob/master/doc/zmq.md

does this docker image support zeromq setup?

@encryptblockr
Copy link
Author

anyone willing to help?

@dev7ba
Copy link

dev7ba commented Dec 13, 2022

I'm using it without problems in mempoolexplorer.com. but I haven't pushed the code yet.

@encryptblockr
Copy link
Author

can you please share what you did? here is my bitcoin.conf file

testnet=0
regtest=0
server=1
rpcuser=test-user
rpcpassword=test-password
rpcport=8332
maxconnections=32
printtoconsole=1
prune=1024
zmqpubrawblock=tcp://127.0.0.1:3000
zmqpubrawtx=tcp://127.0.0.1:3000
zmqpubhashtx=tcp://127.0.0.1:3000
zmqpubhashblock=tcp://127.0.0.1:3000

here is docker-compose.yaml

version: '3.9'

services:
  bitcoin:
    image: kylemanna/bitcoind
    restart: always
    container_name: bitcoin
    volumes:
      - ./bitcoin.conf:/bitcoin/.bitcoin/bitcoin.conf
      - bitcoin-data:/bitcoin/.bitcoin
    ports:
      - 8333:8333   #p2p network
      - 8332:8332   #rpc
      - 3000:3000   #zeromq

volumes:
  bitcoin-data:
    name: bitcoin-data

and here is how i ran the container

docker compose -p bitcoin -f docker-compose.yaml up -d --build

but it is not working when i try to connect to it via port 3000

can you please tell me what i need to do or change for it to work? will really appreciate it
thanks

@dev7ba
Copy link

dev7ba commented Dec 16, 2022

The code of mempoolexplorer.com is in https://github.com/mempoolexplorer/mempoolexplorer
My bitcoin.conf is below.

# [rpc]
# Username for JSON-RPC connections
rpcuser=*******
# Password for JSON-RPC connections
rpcpassword=**********
# rpc ips allowed
rpcallowip=192.168.1.39
rpcallowip=192.168.3.2
rpcallowip=172.18.0.2
rpcallowip=172.18.0.5
maxmempool=2000

# Accept transaction replace-by-fee without requiring replaceability signaling.
mempoolfullrbf=1

# Set database cache size in megabytes; machines sync faster with a larger cache. Recommend setting as high as possible based upon machine's available RAM.
dbcache=4000

# Maintain a full transaction index, used by the getrawtransaction rpc call.
txindex=1

# zmq publication 
zmqpubsequence=tcp://172.18.0.5:29000
[main]
rpcbind=172.18.0.5
rpcbind=localhost
bind=127.0.0.1
disablewallet=1

# network
onion=127.0.0.1:9050
#onlynet=onion
listen=1

@encryptblockr
Copy link
Author

did you read what my issue is? also i am looking for what i have wrong or need to fix
you sent me what you have for bitcoin.conf without saying anything of my situation

i am unable to reach the port 3000, so not sure what am doing wrong or if i missed a setting

@encryptblockr
Copy link
Author

@dev7ba ???

@encryptblockr
Copy link
Author

@petertodd

can you help with way to fix my issue?
am i missing certain bitcon.conf settings to be able have the zeromq listing on port 3000?

will appreciate it, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants