Skip to content

Conversation

@reallesee
Copy link
Contributor

Found and fixed a bug in create_tx_compressor() - it was using RECEIPT_DICTIONARY instead of TRANSACTION_DICTIONARY. This is a classic copy-paste error from when the code was added in #13250.

The function is used in 3 places across the codebase to compress transactions, so using the wrong dictionary means worse compression. The thread-local TRANSACTION_COMPRESSOR already uses the correct dictionary, but this standalone function didn't.

Also cleaned up the docs while I was here - changed "Fn creates" to "Creates a" to match the rest of the codebase (881 other examples use this style), and replaced the wildcard import with explicit imports.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

1 participant