diff --git a/src/net_processing.cpp b/src/net_processing.cpp --- a/src/net_processing.cpp +++ b/src/net_processing.cpp @@ -4269,7 +4269,7 @@ // Orphan tx if (m_orphanage.HaveTx(id)) { - return 2; + return -2; } // Unknown tx diff --git a/test/functional/test_framework/messages.py b/test/functional/test_framework/messages.py --- a/test/functional/test_framework/messages.py +++ b/test/functional/test_framework/messages.py @@ -1071,8 +1071,8 @@ class AvalancheTxVoteError(IntEnum): ACCEPTED = 0 INVALID = 1 - ORPHAN = 2 UNKNOWN = -1 + ORPHAN = -2 class AvalancheVote: