nearcore
nearcore copied to clipboard
[stateless_validation] Fix tests that fail stateless validation
When trying to enable stateless validation, some of the integration tests are failing. I did some initial investigation and found all the problems are related to our testing infrastructure. It's impossible to fix all these in one go so I'm creating a task to track these.
### Tasks
- [x] access_key_nonce_for_implicit_accounts::test_chunk_forwarding_optimization
- [x] adversarial_behaviors::test_non_adversarial_case
- [x] adversarial_behaviors::test_banning_chunk_producer_when_seeing_invalid_chunk
- [x] adversarial_behaviors::test_banning_chunk_producer_when_seeing_invalid_tx_in_chunk
- [x] in_memory_tries::test_in_memory_trie_node_consistency
- [x] limit_contract_functions_number::test_function_limit_change
- [x] process_blocks::test_bad_chunk_mask
- [ ] Bunch of tests in integration-tests/src/tests/client/chunks_management.rs
- [x] process_blocks::test_validate_chunk_extra
We should also look into nayduck, which indicates ~9 more failing tests since enabling endorsements https://nayduck.near.org/#/
cc. @shreyan-gupta to have another look at the current status of this task