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

tests: Verify that transaction is valid and accepted #8976

Merged
merged 1 commit into from
Apr 27, 2023

Conversation

aborg-dev
Copy link
Contributor

The result of process_tx is important because it tells whether the submitted transaction is valid and has been accepted.

So we add #[must_use] annotation to it and fix all the tests that were not checking it.
As a part of this, we fix two tests that were using incorrect nonce (but still somehow functioned...):

  • benchmark_large_chunk_production_time
  • test_verify_chunk_invalid_state_challenge

This is a part of the work on introducing the transaction pool limits #8878.

@aborg-dev aborg-dev requested a review from a team as a code owner April 26, 2023 11:02
@aborg-dev aborg-dev requested a review from nikurt April 26, 2023 11:02
@aborg-dev aborg-dev added A-congestion Work aimed at ensuring good system performance under congestion C-housekeeping Category: Refactoring, cleanups, code quality labels Apr 26, 2023
@near-bulldozer near-bulldozer bot merged commit cff3fab into near:master Apr 27, 2023
nikurt pushed a commit that referenced this pull request Apr 28, 2023
The result of `process_tx` is important because it tells whether the submitted transaction is valid and has been accepted.

So we add `#[must_use]` annotation to it and fix all the tests that were not checking it.
As a part of this, we fix two tests that were using incorrect nonce (but still somehow functioned...):
- `benchmark_large_chunk_production_time`
- `test_verify_chunk_invalid_state_challenge`

This is a part of the work on introducing the transaction pool limits #8878.
@aborg-dev aborg-dev deleted the tp_use_process_tx branch June 12, 2023 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-congestion Work aimed at ensuring good system performance under congestion C-housekeeping Category: Refactoring, cleanups, code quality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants