dashpay / dashcore-node

Full node with extended capabilities using Dashcore and Dash Core (dashd)
Other
31 stars 75 forks source link

ZMQ connection delay: tcp://127.0.0.1:28332 #31

Open gnorbsl opened 6 years ago

gnorbsl commented 6 years ago

Hi,

my Console is spammed with those messages and I can't figure out why.

[2018-08-02T11:21:19.108Z] info: Using config: /home/dash/.dashcore/dashcore-node.json
[2018-08-02T11:21:19.109Z] info: Using network: livenet
[2018-08-02T11:21:19.110Z] info: Starting dashd
[2018-08-02T11:21:19.141Z] info: Dash Daemon Ready
[2018-08-02T11:21:19.141Z] info: Starting web
[2018-08-02T11:21:19.152Z] info: Dashcore Node ready
[2018-08-02T11:21:19.635Z] warn: ZMQ connection delay: tcp://127.0.0.1:28332
[2018-08-02T11:21:19.636Z] warn: ZMQ connection delay: tcp://127.0.0.1:28332
[2018-08-02T11:21:19.636Z] warn: ZMQ connection delay: tcp://127.0.0.1:28332
[2018-08-02T11:21:19.636Z] warn: ZMQ connection delay: tcp://127.0.0.1:28332
[2018-08-02T11:21:20.137Z] warn: ZMQ connection delay: tcp://127.0.0.1:28332
[2018-08-02T11:21:20.137Z] warn: ZMQ connection delay: tcp://127.0.0.1:28332
[2018-08-02T11:21:20.137Z] warn: ZMQ connection delay: tcp://127.0.0.1:28332
[2018-08-02T11:21:20.638Z] warn: ZMQ connection delay: tcp://127.0.0.1:28332
[2018-08-02T11:21:20.638Z] warn: ZMQ connection delay: tcp://127.0.0.1:28332

My dashcore-node.json:

{
  "network": "livenet",
  "port": 3001,
  "services": [
    "dashd",
    "web"
  ],
  "servicesConfig": {
    "dashd": {
      "connect": [
        {
          "rpchost": "127.0.0.1",
          "rpcport": 9998,
          "rpcuser": "dash",
          "rpcpassword": "rpcpassword",
          "zmqpubrawtx": "tcp://127.0.0.1:28332"
        }
      ]
    }
  }
}

my dash.conf:


testnet=0
disablewallet=1
printtoconsole=1
rpcuser=dash
rpcpassword=rpcpassword
rpcbind=0.0.0.0
snogcel commented 6 years ago

Hello,

This isn't well-documented currently as the setup/configuration of dash.conf used to be automated by the installation process. In order for Bitcore to receive ZMQ notifications from the Dash Core Daemon (dashd) the following needs to be included in dash.conf:

zmqpubrawtx=tcp://127.0.0.1:28332

This will enable ZMQ notifications and also configures the port that they are published on. Please give this a try and let me know if this fixes the problem.

vladislavmamchich commented 6 years ago

Hi, I've searched a lot but could not find a solution for this. Anyone have a suggestion how to get it work?

jwaugh commented 5 years ago

Another person having this issue over here.

gnorbsl commented 5 years ago

For everyone with this issue try this:

first install zmq: http://zeromq.org/intro:get-the-software

and add this to your dash.conf:

zmqpubrawtx=tcp://127.0.0.1:28332
zmqpubhashblock=tcp://127.0.0.1:28332