Skip to content

Commit 77882b8

Browse files
committed
Add startup warning for signed-blocks parent chain
1 parent 6a0f381 commit 77882b8

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/init.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1104,6 +1104,13 @@ bool AppInitParameterInteraction(const ArgsManager& args)
11041104
return InitError(Untranslated("peertimeout must be a positive integer."));
11051105
}
11061106

1107+
if (chainparams.GetConsensus().has_parent_chain && !chainparams.GetConsensus().ParentChainHasPow()) {
1108+
LogPrintf("This chain is configured with a signed-blocks parent chain. "
1109+
"Peg-ins referencing a parent block that has activated dynamic "
1110+
"federations will be rejected: such headers cannot be "
1111+
"authenticated. See doc/ for details.\n");
1112+
}
1113+
11071114
// Sanity check argument for min fee for including tx in block
11081115
// TODO: Harmonize which arguments need sanity checking and where that happens
11091116
if (args.IsArgSet("-blockmintxfee")) {

0 commit comments

Comments
 (0)