Skip to content

Commit

Permalink
remove lock
Browse files Browse the repository at this point in the history
  • Loading branch information
mattt21 authored Jun 4, 2019
1 parent 183dc35 commit 1117ff9
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/ghostnode/ghostnode-payments.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,13 +186,7 @@ void CGhostnodePayments::FillBlockPayee(CMutableTransaction &txNew, int nBlockHe
}

int CGhostnodePayments::GetMinGhostnodePaymentsProto() {
LOCK(cs_main);
if(chainActive.Height() > Params().GetConsensus().nStartGhostFeeDistribution)
return MIN_GHOSTNODE_PAYMENT_PROTO_VERSION_2;

return sporkManager.IsSporkActive(SPORK_10_GHOSTNODE_PAY_UPDATED_NODES)
? MIN_GHOSTNODE_PAYMENT_PROTO_VERSION_2
: MIN_GHOSTNODE_PAYMENT_PROTO_VERSION_1;
return MIN_GHOSTNODE_PAYMENT_PROTO_VERSION_2;
}

void CGhostnodePayments::ProcessMessage(CNode *pfrom, std::string &strCommand, CDataStream &vRecv) {
Expand Down

0 comments on commit 1117ff9

Please sign in to comment.