Skip to content

Commit 3fc3ac3

Browse files
committed
disallow pak enforcement arg when nonstandard tx are possible
1 parent dfe5331 commit 3fc3ac3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/init.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1764,6 +1764,11 @@ bool AppInitMain()
17641764

17651765
// ********************************************************* Step 13: Load PAK List
17661766

1767+
// First, make sure -enforce_pak and -acceptnonstdtxn aren't conflicting
1768+
if (Params().GetEnforcePak() && gArgs.GetBoolArg("-acceptnonstdtxn", !Params().RequireStandard())) {
1769+
return InitError("-enforce_pak can not be true if the network accepts non-standard transactions for relay.");
1770+
}
1771+
17671772
//Entire list of PAK entries from conf must be of valid format
17681773
std::vector<std::string> pak_list_str = gArgs.GetArgs("-pak");
17691774
bool valid_paklist = true;

0 commit comments

Comments
 (0)