Skip to content

Commit

Permalink
Fix ignored deprecated params
Browse files Browse the repository at this point in the history
  • Loading branch information
Ouziel committed Jan 16, 2025
1 parent 1f155a6 commit 1c9f099
Show file tree
Hide file tree
Showing 7 changed files with 5,627 additions and 2,674 deletions.
2 changes: 0 additions & 2 deletions counterparty-core/counterpartycore/lib/api/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,6 @@ def prepare_route_args(function):
for arg_name, arg in function_args.items():
if arg_name == "construct_params":
for carg_name, carg_info in composer.CONSTRUCT_PARAMS.items():
if carg_name in composer.DEPRECATED_CONSTRUCT_PARAMS:
continue
args.append(
{
"name": carg_name,
Expand Down
2 changes: 1 addition & 1 deletion counterparty-core/counterpartycore/lib/composer.py
Original file line number Diff line number Diff line change
Expand Up @@ -989,7 +989,7 @@ def prepare_construct_params(construct_params):
cleaned_construct_params = construct_params.copy()
# copy deprecated parameters to new ones
for deprecated_param, new_param, copyer in [
("fee_per_kb", "sat_per_vbyte", lambda x: x // 1024),
("fee_per_kb", "sat_per_vbyte", lambda x: max(x // 1024, 1)),
("fee_provided", "max_fee", lambda x: x),
("dust_return_pubkey", "mutlisig_pubkey", lambda x: x),
("return_psbt", "verbose", lambda x: x),
Expand Down
Loading

0 comments on commit 1c9f099

Please sign in to comment.