Skip to content

Commit

Permalink
draft: use MAX_ACCOUNTING_EXTRA_DATA_LIST_ITEMS_COUNT
Browse files Browse the repository at this point in the history
  • Loading branch information
vgorkavenko committed Feb 13, 2024
1 parent 0be0783 commit 7f157ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion configs/config_mainnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@
ANNUAL_BALANCE_INCREASE_BP_LIMIT = 1000 # 10%
SIMULATED_SHARE_RATE_DEVIATION_BP_LIMIT = 50 # 0.5%
MAX_VALIDATOR_EXIT_REQUESTS_PER_REPORT = 600
MAX_ACCOUNTING_EXTRA_DATA_LIST_ITEMS_COUNT = 2
MAX_ACCOUNTING_EXTRA_DATA_LIST_ITEMS_COUNT = 4
MAX_NODE_OPERATORS_PER_EXTRA_DATA_ITEM_COUNT = 100
REQUEST_TIMESTAMP_MARGIN = 7680 # 2 hours rounded to epoch length
MAX_POSITIVE_TOKEN_REBASE = 750000
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def test_extra_data_full_items(
extra_data = extra_data_service.collect(
{**nor_stuck, **sdvt_stuck},
{**nor_exited, **sdvt_exited},
4,
MAX_ACCOUNTING_EXTRA_DATA_LIST_ITEMS_COUNT,
MAX_NODE_OPERATORS_PER_EXTRA_DATA_ITEM_COUNT,
)
modules_with_exited = []
Expand All @@ -122,7 +122,7 @@ def test_extra_data_full_items(
oracle_report(
extraDataFormat=1,
extraDataHash=extra_data.data_hash,
extraDataItemsCount=4,
extraDataItemsCount=(nor_exited_items + nor_stuck_items + sdvt_exited_items + sdvt_stuck_items),
extraDataList=extra_data.extra_data,
stakingModuleIdsWithNewlyExitedValidators=modules_with_exited,
numExitedValidatorsByStakingModule=num_exited_validators_by_staking_module,
Expand Down

0 comments on commit 7f157ce

Please sign in to comment.