Skip to content

Commit f728fc9

Browse files
committed
refactor: drop legacy flag from CActiveMasternodeInfo
1 parent 4acdd79 commit f728fc9

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

src/masternode/node.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,6 @@ void CActiveMasternodeManager::InitInternal(const CBlockIndex* pindex)
174174

175175
m_info.proTxHash = dmn->proTxHash;
176176
m_info.outpoint = dmn->collateralOutpoint;
177-
m_info.legacy = dmn->pdmnState->nVersion == CProRegTx::LEGACY_BLS_VERSION;
178177
m_state = MasternodeState::READY;
179178
}
180179

src/masternode/node.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ struct CActiveMasternodeInfo {
2222
uint256 proTxHash;
2323
COutPoint outpoint;
2424
CService service;
25-
bool legacy{true};
2625

2726
CActiveMasternodeInfo(const CBLSSecretKey& blsKeyOperator, const CBLSPublicKey& blsPubKeyOperator) :
2827
blsKeyOperator(blsKeyOperator), blsPubKeyOperator(blsPubKeyOperator) {};
@@ -74,7 +73,6 @@ class CActiveMasternodeManager final : public CValidationInterface
7473
[[nodiscard]] uint256 GetProTxHash() const { READ_LOCK(cs); return m_info.proTxHash; }
7574
[[nodiscard]] CService GetService() const { READ_LOCK(cs); return m_info.service; }
7675
[[nodiscard]] CBLSPublicKey GetPubKey() const;
77-
[[nodiscard]] bool IsLegacy() const { READ_LOCK(cs); return m_info.legacy; }
7876

7977
private:
8078
void InitInternal(const CBlockIndex* pindex) EXCLUSIVE_LOCKS_REQUIRED(cs);

src/rpc/governance.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -313,11 +313,10 @@ static RPCHelpMan gobject_submit()
313313
if (node.mn_activeman) {
314314
const bool fMnFound = mnList.HasValidMNByCollateral(node.mn_activeman->GetOutPoint());
315315

316-
LogPrint(BCLog::GOBJECT, "gobject_submit -- pubKeyOperator = %s, outpoint = %s, params.size() = %lld, fMnFound = %d\n",
317-
node.mn_activeman->GetPubKey().ToString(node.mn_activeman->IsLegacy()),
318-
node.mn_activeman->GetOutPoint().ToStringShort(),
319-
request.params.size(),
320-
fMnFound);
316+
LogPrint(BCLog::GOBJECT, /* Continued */
317+
"gobject_submit -- pubKeyOperator = %s, outpoint = %s, params.size() = %lld, fMnFound = %d\n",
318+
node.mn_activeman->GetPubKey().ToString(false), node.mn_activeman->GetOutPoint().ToStringShort(),
319+
request.params.size(), fMnFound);
321320
} else {
322321
LogPrint(BCLog::GOBJECT, "gobject_submit -- pubKeyOperator = N/A, outpoint = N/A, params.size() = %lld, fMnFound = %d\n",
323322
request.params.size(),

0 commit comments

Comments
 (0)