Bitcoin
How do I broadcast a transaction in Bitcoin registration test mode?
We build three nodes, A, B, and C, based on Docker’s bitcoin-regtest image. And since these three nodes are on the same network, they can communicate with each other.
On node A
bitcoin-cli -regtest -rpcuser=admin -rpcpassword=123456 addnode "$IPofB:18444" onetry
On node B
bitcoin-cli -regtest -rpcuser=admin -rpcpassword=123456 addnode "$IPofC:18444" onetry
Then B is A’s peer node and C is B’s peer node. Send a transaction from the wallet created on node A to the wallet created on node C. and sendtoaddress
The API is used on Node A. The API works fine and returns the transaction ID. You can find the transaction in A’s transaction pool.
However, some issues were discovered.
- I use tcpdump to determine network flow. We find A broadcasting a transaction to B. However, C cannot receive from node B.
- The transaction cannot be found in the transaction pool on nodes B and C.
I would like to know if the Bitcoin registration test network can achieve what I want.