Skip to content

Remove support for AVM tx checksums #3774

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

Merged
merged 3 commits into from
Mar 10, 2025
Merged

Conversation

joshua-kim
Copy link
Contributor

@joshua-kim joshua-kim commented Mar 6, 2025

Why this should be merged

Once we merge #3732, checksums will be updated to be return the merkle root instead. We have to make a decision to either continue to maintain the current tx checksumming, or store our txs in a merkle trie. The only current use-case of the tx checksum is for debugging/logging purposes, so this PR removes support for it entirely.

How this works

Removes support for tx checksumming

How this was tested

CI

Need to be documented in RELEASES.md?

Yes

@joshua-kim joshua-kim self-assigned this Mar 6, 2025
@joshua-kim joshua-kim changed the title remove support for avm tx checksums Remove support for AVM tx checksums Mar 6, 2025
@joshua-kim joshua-kim added good first issue Good for newcomers cleanup Code quality improvement labels Mar 6, 2025
@github-project-automation github-project-automation bot moved this to Backlog 🗄️ in avalanchego Mar 6, 2025
@joshua-kim joshua-kim moved this from Backlog 🗄️ to In Review 👀 in avalanchego Mar 6, 2025
@joshua-kim joshua-kim moved this from In Review 👀 to In Progress 🏗 in avalanchego Mar 6, 2025
@joshua-kim joshua-kim force-pushed the x-chain-remove-tx-checksum branch 3 times, most recently from e94ca20 to d8a0bbf Compare March 6, 2025 17:14
@joshua-kim joshua-kim marked this pull request as ready for review March 6, 2025 18:17
@joshua-kim joshua-kim force-pushed the x-chain-remove-tx-checksum branch 3 times, most recently from 319c91b to 4466d91 Compare March 6, 2025 18:28
@@ -110,7 +110,7 @@ func (a *acceptor) ApricotAtomicBlock(b *block.ApricotAtomicBlock) error {
zap.Stringer("blkID", blkID),
zap.Uint64("height", b.Height()),
zap.Stringer("parentID", b.Parent()),
zap.Stringer("utxoChecksum", a.state.Checksum()),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The files in platformvm feel like an unrelated change... so I can take them out if requested. The rationale for coupling them in this PR was to keep the logging consistent.

@joshua-kim joshua-kim force-pushed the x-chain-remove-tx-checksum branch from 4466d91 to b021db1 Compare March 6, 2025 18:31
@joshua-kim joshua-kim force-pushed the x-chain-remove-tx-checksum branch from b021db1 to f2a6499 Compare March 6, 2025 21:53
@bentrnr21

This comment was marked as spam.

@github-project-automation github-project-automation bot moved this from In Progress 🏗 to In Review 👀 in avalanchego Mar 10, 2025
joshua-kim and others added 2 commits March 10, 2025 13:52
Co-authored-by: Stephen Buttolph <[email protected]>
Signed-off-by: Joshua Kim <[email protected]>
Signed-off-by: Joshua Kim <[email protected]>
@joshua-kim joshua-kim enabled auto-merge March 10, 2025 17:58
@joshua-kim joshua-kim added this pull request to the merge queue Mar 10, 2025
Merged via the queue into master with commit 6e6e50a Mar 10, 2025
23 checks passed
@joshua-kim joshua-kim deleted the x-chain-remove-tx-checksum branch March 10, 2025 18:25
@github-project-automation github-project-automation bot moved this from In Review 👀 to Done ✅ in avalanchego Mar 10, 2025
@joshua-kim joshua-kim restored the x-chain-remove-tx-checksum branch March 10, 2025 20:04
@joshua-kim joshua-kim deleted the x-chain-remove-tx-checksum branch March 10, 2025 20:04
cam-schultz pushed a commit that referenced this pull request Mar 24, 2025
Signed-off-by: Joshua Kim <[email protected]>
Co-authored-by: Stephen Buttolph <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup Code quality improvement good first issue Good for newcomers
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants