community – The way to use Wireshark to determine Bitcoin/Lightning P2P packets


Run 2 nodes with totally different ports on regtest

bitcoind -regtest=1 -port=18333 -datadir=/house/satoshi/node1

bitcoind -regtest=1 -port=18444 -datadir=/house/satoshi/node2

Add node1 as outbound connection in node2

addnode "127.0.0.1:18333" "add"

Run Wireshark and choose adapter for loopback site visitors seize. You will notice some packets with ‘bitcoin’ protocol.

Instance: That is INV message despatched by node2 to node1 once I generated a block utilizing generatetoaddress 10 bcrt1qugkqq2a3lhf58e4pclcf52dgd4e02hpve3vhzs

wireshark

For reference, Wireshark has included the flexibility to decode Bitcoin protocol packets since model 1.10.

Leave a Reply

Your email address will not be published. Required fields are marked *

Back To Top