Skip to content

Commit 0eee1a1

Browse files
committed
miner adds commitment when pak enforcement is set only
1 parent 66280e9 commit 0eee1a1

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
@@ -112,8 +112,7 @@ std::unique_ptr<CBlockTemplate> BlockAssembler::CreateNewBlock(const CScript& sc
112112

113113
// ELEMENTS: PAK
114114
// Create block pak commitment if set in conf file and validating pegouts
115-
if (!gArgs.GetBoolArg("-acceptnonstdtxn", !Params().RequireStandard())
116-
&& g_paklist_config) {
115+
if (Params().GetEnforcePak() && g_paklist_config) {
117116
if (*g_paklist_config != g_paklist_blockchain) {
118117
g_paklist_config->CreateCommitments(commitments);
119118
}

0 commit comments

Comments
 (0)