contrib/message-capture/message-capture-docs.md
This feature allows for message capture on a per-peer basis. It answers the simple question: "Can I see what messages my node is sending and receiving?"
bitcoind with the -capturemessages option.message_capture folder in your datadir.
~/.bitcoin/message_capture..dat files: one is for received messages (msgs_recv.dat) and the other is for sent messages (msgs_sent.dat).contrib/message-capture/message-capture-parser.py with the proper arguments.
-h option for help../contrib/message-capture/message-capture-parser.py -o out.json \
~/.bitcoin/message_capture/**/*.dat
.dat files will be interleaved in chronological order. So, giving both received and sent .dat files (as above with *.dat) will result in all messages being interleaved in chronological order.-o option is not used), then the output prints to stdout.JSON formatted.jq to view the output, with jq . out.json