mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2026-08-24 10:05:29 -05:00
Revert "don't build a dict of the conditions, just to iterate over them (#6607)"
This reverts commit 7cdc93efac.
This commit is contained in:
@@ -27,7 +27,7 @@ def calculate_cost_of_program(program: SerializedProgram, npc_result: NPCResult,
|
||||
# Add cost of conditions
|
||||
npc: NPC
|
||||
for npc in npc_list:
|
||||
for condition, cvp_list in npc.conditions:
|
||||
for condition, cvp_list in npc.condition_dict.items():
|
||||
if condition is ConditionOpcode.AGG_SIG_UNSAFE or condition is ConditionOpcode.AGG_SIG_ME:
|
||||
total_cost += len(cvp_list) * ConditionCost.AGG_SIG.value
|
||||
elif condition is ConditionOpcode.CREATE_COIN:
|
||||
|
||||
Reference in New Issue
Block a user