From a7efc9167525dabcc0ed993b52ea0d4ad0acf0a7 Mon Sep 17 00:00:00 2001 From: Anthony Fieroni Date: Tue, 23 Mar 2021 14:21:00 +0200 Subject: [PATCH] Fix pool id serialization in update poolpair tx Signed-off-by: Anthony Fieroni --- src/masternodes/mn_checks.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/masternodes/mn_checks.cpp b/src/masternodes/mn_checks.cpp index 6a21b5812e..ed5222fca1 100644 --- a/src/masternodes/mn_checks.cpp +++ b/src/masternodes/mn_checks.cpp @@ -255,7 +255,8 @@ class CCustomMetadataParseVisitor : public boost::static_visitor } CDataStream ss(metadata, SER_NETWORK, PROTOCOL_VERSION); - ss >> obj.poolId; + // serialize poolId as raw integer + ss >> obj.poolId.v; ss >> obj.status; ss >> obj.commission; ss >> obj.ownerAddress;