New inv type and protocol messages that have been changed during block delivery due to Bitcoin Core version upgrade are not included in the Wireshark dissectors. BcMon provides a Wireshark Bitcoin protocol analysis extension file.
Providing the bitcoin protocol dissector files
: sendcmpct, cmpctblock, getblocktxn, blocktxn
// Ubuntu 18.04, Wireshark 3.3.1
See the Wireshark Developer's Guide chapter on Lua
(https://www.wireshark.org/docs/wsdg_html_chunked/wsluarm.html).
- Clone this repository
- Move the lua file into Wireshark's global configuration directory
(Window: C:\Program Files\Wireshark, Linux: /usr/share/wireshark) - At the end of the init.lua file located in the Wireshark's global configuration directory,
specify the path to the <filename>.lua file as follows:dofile(DATA_DIR.."filename.lua")
- Save init.lua and run wireshark
- On the Enabled Protocols tab of the Analysis menu, set to Enable Protocols.
The protocol is intended to be used in two ways, depending on the peers and bandwidth available, as shown in the figure.
https://github.com/bitcoin/bips/blob/master/bip-0152.mediawiki
https://en.bitcoin.it/wiki/Protocol_documentation