The right way to broadcast transactions in bitcoin regtest mode? – CoinNewsTrend

The right way to broadcast transactions in bitcoin regtest mode?


I construct three nodes named A,B,C primarily based on bitcoin-regtest picture of docker. And these three nodes are in the identical community which suggests they will talk with one another.

In node A, I take advantage of

bitcoin-cli -regtest -rpcuser=admin -rpcpassword=123456 addnode "$IPofB:18444" onetry

In node B, I take advantage of

bitcoin-cli -regtest -rpcuser=admin -rpcpassword=123456 addnode "$IPofC:18444" onetry

Then B is the peer node of A and C is the peer node of B;
I ship a transaction from the pockets created on node A to pockets created on node C. And the sendtoaddress API is used on node A. The API works nicely and returns the transaction id. I can discover the transaction within the transaction pool of A.

However I discover some troubles:

  • I take advantage of tcpdump to catch the community movement. I discover A broadcast the transaction to B. However C can not obtain from node B.
  • I can not discover the transaction from the transaction pool of node B and C;

I wish to know whether or not regtest community of bitcoin can obtain what I want



Supply hyperlink