mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
disallow pak enforcement arg when nonstandard tx are possible
This commit is contained in:
parent
dfe5331dba
commit
3fc3ac340f
1 changed files with 5 additions and 0 deletions
|
|
@ -1764,6 +1764,11 @@ bool AppInitMain()
|
|||
|
||||
// ********************************************************* Step 13: Load PAK List
|
||||
|
||||
// First, make sure -enforce_pak and -acceptnonstdtxn aren't conflicting
|
||||
if (Params().GetEnforcePak() && gArgs.GetBoolArg("-acceptnonstdtxn", !Params().RequireStandard())) {
|
||||
return InitError("-enforce_pak can not be true if the network accepts non-standard transactions for relay.");
|
||||
}
|
||||
|
||||
//Entire list of PAK entries from conf must be of valid format
|
||||
std::vector<std::string> pak_list_str = gArgs.GetArgs("-pak");
|
||||
bool valid_paklist = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue