Skip to content

Commit

Permalink
RPC: Disable getwitnessinfo for pre phase5 blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
mjmacleod committed Aug 19, 2020
1 parent a8bf379 commit 310784e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rpc/accounts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ static UniValue getwitnessinfo(const JSONRPCRequest& request)
pTipIndex = chainActive.Tip();
}

if (!pTipIndex || (uint64_t)pTipIndex->nHeight < Params().GetConsensus().pow2Phase2FirstBlockHeight)
if (!pTipIndex || (uint64_t)pTipIndex->nHeight < Params().GetConsensus().pow2Phase5FirstBlockHeight)
return NullUniValue;

if (request.params.size() >= 2)
Expand Down

0 comments on commit 310784e

Please sign in to comment.