#ifndef BITCOIN_DYNAFED_H #define BITCOIN_DYNAFED_H #include #include #include /* Returns true if the next block would be the first block of an epoch with new * parameters. It also returns the parameter set that is being transitioned to. */ bool NextBlockIsParameterTransition(const CBlockIndex* pindexPrev, const Consensus::Params& consensus, DynaFedParamEntry& winning_entry); /* Compute the next block's enforced parameters */ DynaFedParamEntry ComputeNextBlockFullCurrentParameters(const CBlockIndex* pindexPrev, const Consensus::Params& consensus); /* Compute the next block's expected published parameters. Blocks at "epoch_age" of non-0 only * publish signblockscript-related fields */ DynaFedParamEntry ComputeNextBlockCurrentParameters(const CBlockIndex* pindexPrev, const Consensus::Params& consensus); #endif // BITCOIN_DYNAFED_H