mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-19 13:27:35 +02:00
Allow untrimming headers when needed
This commit is contained in:
parent
4259278ff5
commit
c28c5ce619
5 changed files with 40 additions and 0 deletions
|
|
@ -26,6 +26,8 @@
|
|||
// ELEMENTS
|
||||
//
|
||||
|
||||
#include <validation.h>
|
||||
|
||||
namespace {
|
||||
static secp256k1_context* secp256k1_ctx_validation;
|
||||
|
||||
|
|
@ -487,6 +489,7 @@ std::vector<std::pair<CScript, CScript>> GetValidFedpegScripts(const CBlockIndex
|
|||
break;
|
||||
}
|
||||
|
||||
ForceUntrimHeader(p_epoch_start);
|
||||
if (!p_epoch_start->dynafed_params().IsNull()) {
|
||||
fedpegscripts.push_back(std::make_pair(p_epoch_start->dynafed_params().m_current.m_fedpeg_program, p_epoch_start->dynafed_params().m_current.m_fedpegscript));
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue