Skip to content

Commit

Permalink
Fix any asset fees flag to use value from chainparams if nothing passed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mixa84 committed Oct 7, 2024
1 parent 52104bb commit b8e9990
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -154,3 +154,6 @@ dist/

# nix
result

#vscode
.vscode
2 changes: 1 addition & 1 deletion src/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1332,7 +1332,7 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
// ELEMENTS:
policyAsset = CAsset(uint256S(gArgs.GetArg("-feeasset", chainparams.GetConsensus().pegged_asset.GetHex())));

g_con_any_asset_fees = gArgs.GetBoolArg("-con_any_asset_fees", false);
g_con_any_asset_fees = gArgs.GetBoolArg("-con_any_asset_fees", g_con_any_asset_fees);
if (g_con_any_asset_fees) {
// If fees can be paid in any asset, node operators need to be able to specify asset exchange
// rates using either the static config file and/or the exchange rates RPCs.
Expand Down

0 comments on commit b8e9990

Please sign in to comment.