diff --git a/qa/rpc-tests/test_framework/mininode.py b/qa/rpc-tests/test_framework/mininode.py index 6da6bcbd63..b8ae3346b7 100755 --- a/qa/rpc-tests/test_framework/mininode.py +++ b/qa/rpc-tests/test_framework/mininode.py @@ -910,6 +910,37 @@ class CCbTx(object): return r +class CSimplifiedMNListEntry(object): + def __init__(self): + self.set_null() + + def set_null(self): + self.proRegTxHash = 0 + self.confirmedHash = 0 + self.service = CService() + self.pubKeyOperator = b'\\x0' * 48 + self.keyIDVoting = 0 + self.isValid = False + + def deserialize(self, f): + self.proRegTxHash = deser_uint256(f) + self.confirmedHash = deser_uint256(f) + self.service.deserialize(f) + self.pubKeyOperator = f.read(48) + self.keyIDVoting = f.read(20) + self.isValid = struct.unpack("