mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +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
|
// ********************************************************* 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
|
//Entire list of PAK entries from conf must be of valid format
|
||||||
std::vector<std::string> pak_list_str = gArgs.GetArgs("-pak");
|
std::vector<std::string> pak_list_str = gArgs.GetArgs("-pak");
|
||||||
bool valid_paklist = true;
|
bool valid_paklist = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue