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

Stop double- encoding and decoding in the mempool #2108

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

edmundnoble
Copy link
Contributor

Prior, when we fetch a tx from a remote mempool, we decode it, then re-encode it to insert it in the local mempool. This deletes the re-encoding.

Prior, when we send a tx to a remote mempool, we decode it, deepseq it, then encode the decoded tx to send to the remote mempool. This deletes the deepseq and the re-decoding. This is probably a big deal.

Prior, when a tx was inserted into the local mempool via the mempool insert endpoint, we would decode it in the handler, then re-encode it to insert it in the local mempool. This deletes the re-encoding.

Change-Id: Id0000000adb067b5766554c94d8188a2b804cd9b

Prior, when we fetch a tx from a remote mempool, we decode it, then
re-encode it to insert it in the local mempool. This deletes the
re-encoding.

Prior, when we send a tx to a remote mempool, we decode it, deepseq
it, then encode the decoded tx to send to the remote mempool. This
deletes the deepseq and the re-decoding. This is probably a big deal.

Prior, when a tx was inserted into the local mempool via the mempool
insert endpoint, we would decode it in the handler, then re-encode it
to insert it in the local mempool. This deletes the re-encoding.

Change-Id: Id0000000adb067b5766554c94d8188a2b804cd9b
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.

1 participant