mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 04:22:55 +01:00
governance: Fix signature check in CGovernanceObject::Sign (#3973)
This commit is contained in:
parent
7c5710f64b
commit
edc286be46
@ -305,7 +305,7 @@ void CGovernanceObject::SetMasternodeOutpoint(const COutPoint& outpoint)
|
|||||||
bool CGovernanceObject::Sign(const CBLSSecretKey& key)
|
bool CGovernanceObject::Sign(const CBLSSecretKey& key)
|
||||||
{
|
{
|
||||||
CBLSSignature sig = key.Sign(GetSignatureHash());
|
CBLSSignature sig = key.Sign(GetSignatureHash());
|
||||||
if (!key.IsValid()) {
|
if (!sig.IsValid()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
sig.GetBuf(vchSig);
|
sig.GetBuf(vchSig);
|
||||||
|
Loading…
Reference in New Issue
Block a user