Skip to content

Commit

Permalink
mnList GetListForBlock
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryxor committed Sep 2, 2019
1 parent 86f3652 commit cd31fad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rpc/rpcquorums.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -222,14 +222,14 @@ UniValue quorum_memberof(const JSONRPCRequest& request)
pindexTip = chainActive.Tip();
}

auto mnList = deterministicMNManager->GetListForBlock(pindexTip);
auto mnList = deterministicMNManager->GetListForBlock(pindexTip->GetBlockHash());
auto dmn = mnList.GetMN(protxHash);
if (!dmn) {
throw JSONRPCError(RPC_INVALID_PARAMETER, "masternode not found");
}

UniValue result(UniValue::VARR);

for (const auto& p : Params().GetConsensus().llmqs) {
auto& params = p.second;
size_t count = params.signingActiveQuorumCount;
Expand Down

0 comments on commit cd31fad

Please sign in to comment.