Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14362721
D17189.id51096.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
D17189.id51096.diff
View Options
diff --git a/src/protocol.cpp b/src/protocol.cpp
--- a/src/protocol.cpp
+++ b/src/protocol.cpp
@@ -226,6 +226,10 @@
return cmd.append(NetMsgType::CMPCTBLOCK);
case MSG_AVA_PROOF:
return cmd.append(NetMsgType::AVAPROOF);
+ case MSG_AVA_STAKE_CONTENDER:
+ // Stake contender does not have a NetMsgType because there is no
+ // contender-specific message, so we hard code the name here.
+ return cmd.append("stakecontender");
default:
throw std::out_of_range(
strprintf("CInv::GetCommand(): type=%d unknown type", type));
diff --git a/test/functional/p2p_inv_download.py b/test/functional/p2p_inv_download.py
--- a/test/functional/p2p_inv_download.py
+++ b/test/functional/p2p_inv_download.py
@@ -91,7 +91,7 @@
STAKE_CONTENDER_TEST_CONTEXT = TestContext(
MSG_AVA_STAKE_CONTENDER,
- "avalanche stake contender",
+ "stakecontender",
NetConstants(
getdata_interval=60, # seconds
inbound_peer_delay=2, # seconds
@@ -499,7 +499,7 @@
with self.nodes[0].assert_debug_log(
[
"received getdata (1 invsz)",
- f"received getdata for: 0x{context.inv_type:x} {uint256_hex(itemid)}",
+ f"received getdata for: {context.inv_name} {uint256_hex(itemid)}",
],
):
msg = msg_getdata()
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, May 12, 01:42 (21 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5738265
Default Alt Text
D17189.id51096.diff (1 KB)
Attached To
D17189: [avalanche] Fix getdata log not showing stake contender inv type name
Event Timeline
Log In to Comment