mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
19 lines
895 B
C
19 lines
895 B
C
#ifndef BITCOIN_DYNAFED_H
|
|
#define BITCOIN_DYNAFED_H
|
|
|
|
#include <chain.h>
|
|
#include <chainparams.h>
|
|
#include <primitives/block.h>
|
|
|
|
/* 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
|