mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2024-09-11 18:58:59 +03:00
Simplify updates construction in dl_update_multiple (#17214)
Simplify updates construction in dl_update_multiple.
This commit is contained in:
parent
12ab2b8a2e
commit
b6a9c1d6d6
@ -1182,9 +1182,7 @@ class WalletRpcClient(RpcClient):
|
||||
extra_conditions: Tuple[Condition, ...] = tuple(),
|
||||
timelock_info: ConditionValidTimes = ConditionValidTimes(),
|
||||
) -> List[TransactionRecord]:
|
||||
updates_as_strings: Dict[str, str] = {}
|
||||
for lid, root in update_dictionary.items():
|
||||
updates_as_strings[str(lid)] = str(root)
|
||||
updates_as_strings = {str(lid): str(root) for lid, root in update_dictionary.items()}
|
||||
request = {
|
||||
"updates": updates_as_strings,
|
||||
"extra_conditions": conditions_to_json_dicts(extra_conditions),
|
||||
|
Loading…
Reference in New Issue
Block a user