diff options
| author | Suhas Daftuar <[email protected]> | 2020-01-30 10:10:50 -0500 |
|---|---|---|
| committer | Suhas Daftuar <[email protected]> | 2020-07-19 02:10:41 -0400 |
| commit | 46d78d47dea345329ba094310eec56ab00a02ddc (patch) | |
| tree | bb811d9a5512988a7824f6d11c12ed508677b796 /src/protocol.cpp | |
| parent | ignore non-wtxidrelay compliant invs (diff) | |
| download | discoin-46d78d47dea345329ba094310eec56ab00a02ddc.tar.xz discoin-46d78d47dea345329ba094310eec56ab00a02ddc.zip | |
Add p2p message "wtxidrelay"
When sent to and received from a given peer, enables using wtxid's for
announcing and fetching transactions with that peer.
Diffstat (limited to 'src/protocol.cpp')
| -rw-r--r-- | src/protocol.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/protocol.cpp b/src/protocol.cpp index 30a0d5dd8..ee77ca3b9 100644 --- a/src/protocol.cpp +++ b/src/protocol.cpp @@ -46,6 +46,7 @@ const char *GETCFHEADERS="getcfheaders"; const char *CFHEADERS="cfheaders"; const char *GETCFCHECKPT="getcfcheckpt"; const char *CFCHECKPT="cfcheckpt"; +const char *WTXIDRELAY="wtxidrelay"; } // namespace NetMsgType /** All known message types. Keep this in the same order as the list of @@ -83,6 +84,7 @@ const static std::string allNetMessageTypes[] = { NetMsgType::CFHEADERS, NetMsgType::GETCFCHECKPT, NetMsgType::CFCHECKPT, + NetMsgType::WTXIDRELAY, }; const static std::vector<std::string> allNetMessageTypesVec(allNetMessageTypes, allNetMessageTypes+ARRAYLEN(allNetMessageTypes)); |