Skip to content

Commit

Permalink
added aggsig_me to cost_calculator, same as aggsig
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-o-how authored and Yostra committed Jan 12, 2021
1 parent 5f537c6 commit 8020438
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/full_node/cost_calculator.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def calculate_cost_of_program(
total_vbyte_cost = 0
for npc in npc_list:
for condition, cvp_list in npc.condition_dict.items():
if condition is ConditionOpcode.AGG_SIG:
if condition is ConditionOpcode.AGG_SIG or condition is ConditionOpcode.AGG_SIG_ME:
total_vbyte_cost += len(cvp_list) * ConditionCost.AGG_SIG.value
elif condition is ConditionOpcode.CREATE_COIN:
total_vbyte_cost += len(cvp_list) * ConditionCost.CREATE_COIN.value
Expand Down

0 comments on commit 8020438

Please sign in to comment.