feat: make CInv python implementation aware of governance invs

This commit is contained in:
UdjinM6 2024-08-22 21:49:40 +03:00
parent c7c930ece6
commit 06b4dba0d3
No known key found for this signature in database
GPG Key ID: 83592BD1400D58D9

View File

@ -59,6 +59,8 @@ NODE_HEADERS_COMPRESSED = (1 << 11)
MSG_TX = 1
MSG_BLOCK = 2
MSG_FILTERED_BLOCK = 3
MSG_GOVERNANCE_OBJECT = 17
MSG_GOVERNANCE_OBJECT_VOTE = 18
MSG_CMPCT_BLOCK = 20
MSG_TYPE_MASK = 0xffffffff >> 2
@ -350,6 +352,8 @@ class CInv:
MSG_TX: "TX",
MSG_BLOCK: "Block",
MSG_FILTERED_BLOCK: "filtered Block",
MSG_GOVERNANCE_OBJECT: "Governance Object",
MSG_GOVERNANCE_OBJECT_VOTE: "Governance Vote",
MSG_CMPCT_BLOCK: "CompactBlock",
}