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

chain: remove TxStatusError::InvalidTx variant #7915

Merged
merged 2 commits into from
Oct 24, 2022
Merged

Conversation

mina86
Copy link
Contributor

@mina86 mina86 commented Oct 24, 2022

The TxStatusError::InvalidTx variant is never constructed
so get rid of it.

The TxStatusError::InvalidTx variant is never constructed so get rid
of it.
@mina86 mina86 requested a review from matklad October 24, 2022 15:33
@matklad
Copy link
Contributor

matklad commented Oct 24, 2022

One Q I have here is what actually happens then, if the tx is indeed invalid? As in, maybe the bug is that we don't construct this variant, and we really should?

@mina86
Copy link
Contributor Author

mina86 commented Oct 24, 2022

My understanding is that this error happens when you’re submitting a transaction. It may not happen when you query transaction’s status since if you specify invalid hash you’ll get missing transaction error.

@matklad
Copy link
Contributor

matklad commented Oct 24, 2022

Right, if tx is invalid, we won't even store it

@mina86 mina86 marked this pull request as ready for review October 24, 2022 20:20
@mina86 mina86 requested a review from a team as a code owner October 24, 2022 20:20
@near-bulldozer near-bulldozer bot merged commit 8ab9f8b into near:master Oct 24, 2022
@mina86 mina86 deleted the c branch October 24, 2022 20:38
nikurt pushed a commit that referenced this pull request Oct 25, 2022
The TxStatusError::InvalidTx variant is never constructed
so get rid of it.
nikurt pushed a commit that referenced this pull request Nov 7, 2022
The TxStatusError::InvalidTx variant is never constructed
so get rid of it.
nikurt pushed a commit that referenced this pull request Nov 9, 2022
The TxStatusError::InvalidTx variant is never constructed
so get rid of it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants