mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 21:12:48 +01:00
fix CFinalizedBudgetVote and CBudgetVote hashing, see https://github.com/dashpay/dash/pull/357 for more info
This commit is contained in:
parent
aa91dde992
commit
5f5ee7a59b
@ -304,7 +304,11 @@ public:
|
|||||||
void Relay();
|
void Relay();
|
||||||
|
|
||||||
uint256 GetHash(){
|
uint256 GetHash(){
|
||||||
return Hash(BEGIN(vin), END(vin), BEGIN(nBudgetHash), END(nBudgetHash), BEGIN(nTime), END(nTime));
|
CHashWriter ss(SER_GETHASH, PROTOCOL_VERSION);
|
||||||
|
ss << vin;
|
||||||
|
ss << nBudgetHash;
|
||||||
|
ss << nTime;
|
||||||
|
return ss.GetHash();
|
||||||
}
|
}
|
||||||
|
|
||||||
ADD_SERIALIZE_METHODS;
|
ADD_SERIALIZE_METHODS;
|
||||||
@ -479,7 +483,12 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
uint256 GetHash(){
|
uint256 GetHash(){
|
||||||
return Hash(BEGIN(vin), END(vin), BEGIN(nProposalHash), END(nProposalHash), BEGIN(nVote), END(nVote), BEGIN(nTime), END(nTime));
|
CHashWriter ss(SER_GETHASH, PROTOCOL_VERSION);
|
||||||
|
ss << vin;
|
||||||
|
ss << nProposalHash;
|
||||||
|
ss << nVote;
|
||||||
|
ss << nTime;
|
||||||
|
return ss.GetHash();
|
||||||
}
|
}
|
||||||
|
|
||||||
ADD_SERIALIZE_METHODS;
|
ADD_SERIALIZE_METHODS;
|
||||||
|
Loading…
Reference in New Issue
Block a user