Skip to content

Commit

Permalink
Remove unneeded code
Browse files Browse the repository at this point in the history
  • Loading branch information
Bushstar committed Nov 30, 2021
1 parent 372cb5b commit 8b5bfa9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/masternodes/mn_checks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -927,7 +927,6 @@ class CCustomTxApplyVisitor : public CCustomTxVisitor
}

for (const auto& item : obj.updates) {
LogPrintf("TYPE: %d\n", item.first);
if (item.first == static_cast<uint8_t>(UpdateMasternodeType::OperatorAddress)) {
if (item.second.first != 1 && item.second.first != 4) {
return Res::Err("Operator address must be P2PKH or P2WPKH type");
Expand Down
2 changes: 0 additions & 2 deletions src/masternodes/rpc_masternodes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -390,8 +390,6 @@ UniValue updatemasternode(const JSONRPCRequest& request)
if (!metaObj["operatorAddress"].isNull()) {
const CKeyID keyID = operatorDest.index() == PKHashType ? CKeyID(std::get<PKHash>(operatorDest)) : CKeyID(std::get<WitnessV0KeyHash>(operatorDest));
msg.updates.emplace_back(static_cast<uint8_t>(UpdateMasternodeType::OperatorAddress), std::make_pair(static_cast<char>(operatorDest.index()), std::vector<unsigned char>(keyID.begin(), keyID.end())));
} else {

}

if (!metaObj["rewardAddress"].isNull()) {
Expand Down

0 comments on commit 8b5bfa9

Please sign in to comment.