mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 03:52:49 +01:00
Add GetValidMNByService to CDeterministicMNList
This commit is contained in:
parent
5d94d6bdfd
commit
5bebdda71f
@ -168,6 +168,11 @@ CDeterministicMNCPtr CDeterministicMNList::GetValidMNByCollateral(const COutPoin
|
||||
return dmn;
|
||||
}
|
||||
|
||||
CDeterministicMNCPtr CDeterministicMNList::GetValidMNByService(const CService& service) const
|
||||
{
|
||||
return GetUniquePropertyMN(service);
|
||||
}
|
||||
|
||||
static int CompareByLastPaid_GetHeight(const CDeterministicMN& dmn)
|
||||
{
|
||||
int height = dmn.pdmnState->nLastPaidHeight;
|
||||
|
@ -306,6 +306,7 @@ public:
|
||||
CDeterministicMNCPtr GetMNByOperatorKey(const CBLSPublicKey& pubKey);
|
||||
CDeterministicMNCPtr GetMNByCollateral(const COutPoint& collateralOutpoint) const;
|
||||
CDeterministicMNCPtr GetValidMNByCollateral(const COutPoint& collateralOutpoint) const;
|
||||
CDeterministicMNCPtr GetValidMNByService(const CService& service) const;
|
||||
CDeterministicMNCPtr GetMNPayee() const;
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user