mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +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)
|
||||
{
|
||||
CBLSSignature sig = key.Sign(GetSignatureHash());
|
||||
if (!key.IsValid()) {
|
||||
if (!sig.IsValid()) {
|
||||
return false;
|
||||
}
|
||||
sig.GetBuf(vchSig);
|
||||
|
Loading…
Reference in New Issue
Block a user