s/ConsensusParamEntry/DynaFedParamEntry/

This commit is contained in:
Gregory Sanders 2019-06-14 13:14:06 -04:00
parent 642260a126
commit 15996384d4
10 changed files with 33 additions and 33 deletions

View file

@ -1030,7 +1030,7 @@ UniValue getnewblockhex(const JSONRPCRequest& request)
}
// Construct proposed parameter entry, if any
ConsensusParamEntry proposed;
DynaFedParamEntry proposed;
if (!request.params[1].isNull()) {
if (!IsDynaFedEnabled(chainActive.Tip(), Params().GetConsensus())) {
throw JSONRPCError(RPC_INVALID_PARAMETER, "Dynamic federations is not active on this network. Proposed parameters are not needed.");