Skip to content

Work around indexing problem for duplicate transactions (forward port: #8625) - #8945

Merged
tychoish merged 2 commits into
tendermint:masterfrom
yihuang:port-duplicated-tx-workaround
Jul 6, 2022
Merged

tychoish merged 2 commits into
tendermint:masterfrom
yihuang:port-duplicated-tx-workaround

Conversation

@yihuang

@yihuang yihuang commented Jul 6, 2022 •

Copy link
Copy Markdown

Forward port: #8625

Port and refactored the bug fix terra-money#76 to upstream. This is critical for ethermint json-rpc to work.

  • prevent duplicate tx index if it succeeded before
  • handle duplicate txs within the same block

Co-authored-by: jess [email protected]

ref: #5281

Please add a description of the changes that this PR introduces and the files that
are the most critical to review.

If this PR fixes an open Issue, please include "Closes #XXX" (where "XXX" is the Issue number)
so that GitHub will automatically close the Issue when this PR is merged.

…tendermint#8625)

Port the bug fix terra-money#76 to upstream. This is critical for ethermint json-rpc to work.

fix: prevent duplicate tx index if it succeeded before
fix: use CodeTypeOk instead of 0
fix: handle duplicate txs within the same block
Co-authored-by: jess [email protected]

ref: tendermint#5281
Comment thread CHANGELOG_PENDING.md
- [cli] \#8276 scmigrate: ensure target key is correctly renamed. (@creachadair)
- [cli] \#8294 keymigrate: ensure block hash keys are correctly translated. (@creachadair)
- [cli] \#8352 keymigrate: ensure transaction hash keys are correctly translated. (@creachadair)
- (indexer) \#8625 Fix overriding tx index of duplicated txs.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- (indexer) \#8625 Fix overriding tx index of duplicated txs.
- (indexer) \#8945 Fix overriding tx index of duplicated txs.

@creachadair
creachadair requested a review from samricotta as a code owner July 6, 2022 15:05
@tychoish
tychoish merged commit be6d74e into tendermint:master Jul 6, 2022
mergify Bot pushed a commit that referenced this pull request Jul 6, 2022
…#8625) (#8945)

Port the bug fix terra-money#76 to upstream. This is critical for ethermint json-rpc to work.

fix: prevent duplicate tx index if it succeeded before
fix: use CodeTypeOk instead of 0
fix: handle duplicate txs within the same block
Co-authored-by: jess [email protected]

ref: #5281

Co-authored-by: M. J. Fromberger <[email protected]>
(cherry picked from commit be6d74e)

# Conflicts:
#	CHANGELOG_PENDING.md
#	internal/state/indexer/indexer_service.go
mergify Bot pushed a commit that referenced this pull request Jul 6, 2022
…#8625) (#8945)

Port the bug fix terra-money#76 to upstream. This is critical for ethermint json-rpc to work.

fix: prevent duplicate tx index if it succeeded before
fix: use CodeTypeOk instead of 0
fix: handle duplicate txs within the same block
Co-authored-by: jess [email protected]

ref: #5281

Co-authored-by: M. J. Fromberger <[email protected]>
(cherry picked from commit be6d74e)
tychoish pushed a commit that referenced this pull request Jul 6, 2022
…#8625) (#8945) (#8951)

Port the bug fix terra-money#76 to upstream. This is critical for ethermint json-rpc to work.

fix: prevent duplicate tx index if it succeeded before
fix: use CodeTypeOk instead of 0
fix: handle duplicate txs within the same block
Co-authored-by: jess [email protected]

ref: #5281

Co-authored-by: M. J. Fromberger <[email protected]>
(cherry picked from commit be6d74e)

Co-authored-by: yihuang <[email protected]>
@yihuang
yihuang deleted the port-duplicated-tx-workaround branch July 7, 2022 01:38
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.

3 participants