Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.2] Fix nodeos forked chain test #499

Merged
merged 5 commits into from
Jun 23, 2022
Merged

Conversation

linh2931
Copy link
Member

Backport EOSIO/eos#9211 and EOSIO/eos#9930.
Resolve #405 and #437.

From EOSIO/eos#9211:
No longer require a producer to have to produce 12 blocks per round to allow for VMs not always getting time slices. Also, changed the default maximum time that successive transactions could be separated by. (It is a corner case, that resulted in a transaction not being processed for a whole production window. I added a comment to the Jira task to ensure it gets turned back on when that is fixed)

From EOSIO/eos#9930:
When building the list of blocks to search for forking, the range was
for blockNum in range(preKillBlockNum, lastBlockNum). In Python, the range is half closed. This results in an off by one problem if the forking block was the exact lastBlockNum. In EPE-465, lastBlockNum and the forked block number both ware 166, but the search ended t 165. This is also why the problem occurs rarely. The fix is for blockNum in range(preKillBlockNum, lastBlockNum + 1)

@linh2931 linh2931 merged commit fb3e242 into main Jun 23, 2022
@linh2931 linh2931 deleted the fix_nodeos_forked_chain_test branch June 23, 2022 12:51
@arhag arhag changed the title Fix nodeos forked chain test [3.2] Fix nodeos forked chain test Jul 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Backport: Loosen production round requirement in nodeos_forked_chain_test
4 participants