Skip to content

Commit 47ea638

Browse files
committed
miner adds commitment when pak enforcement is set only
1 parent 3fc3ac3 commit 47ea638

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/miner.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,7 @@ std::unique_ptr<CBlockTemplate> BlockAssembler::CreateNewBlock(const CScript& sc
116116

117117
// ELEMENTS: PAK
118118
// Create block pak commitment if set in conf file and validating pegouts
119-
if (!gArgs.GetBoolArg("-acceptnonstdtxn", !Params().RequireStandard())
120-
&& g_paklist_config) {
119+
if (Params().GetEnforcePak() && g_paklist_config) {
121120
if (*g_paklist_config != g_paklist_blockchain) {
122121
g_paklist_config->CreateCommitments(commitments);
123122
}

0 commit comments

Comments
 (0)