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

added transaction size in TransactionRecord #403

Merged
merged 1 commit into from
Sep 5, 2022

Conversation

sumit2bk
Copy link
Contributor

No description provided.

@scarmuega
Copy link
Member

@sumit2bk thanks for this, it looks great. My only concern is that the CBOR encoding will probably have an impact in performance. Would be nice to hide this computation under a feature flag in configuration so that it's only enabled when needed (something similar to the include_transaction_details flag).

Would you be willing to add that as part of the PR? Otherwise, we can merge this one and treat the rest as a new PR.

@sumit2bk
Copy link
Contributor Author

sumit2bk commented Sep 5, 2022

@sumit2bk thanks for this, it looks great. My only concern is that the CBOR encoding will probably have an impact in performance. Would be nice to hide this computation under a feature flag in configuration so that it's only enabled when needed (something similar to the include_transaction_details flag).

Would you be willing to add that as part of the PR? Otherwise, we can merge this one and treat the rest as a new PR.

Hi @scarmuega . The raw CBOR was available out of the box. I didn't have to do any encoding. Let me know if you think the flag is still needed and I can add it to the same PR.

@scarmuega
Copy link
Member

@sumit2bk thanks for this, it looks great. My only concern is that the CBOR encoding will probably have an impact in performance. Would be nice to hide this computation under a feature flag in configuration so that it's only enabled when needed (something similar to the include_transaction_details flag).
Would you be willing to add that as part of the PR? Otherwise, we can merge this one and treat the rest as a new PR.

Hi @scarmuega . The raw CBOR was available out of the box. I didn't have to do any encoding. Let me know if you think the flag is still needed and I can add it to the same PR.

🤦 you're right, my bad. I forgot we already migrated to the version of Pallas that has the KeepRaw utility.

Great work!

@scarmuega scarmuega merged commit aa95d09 into txpipe:main Sep 5, 2022
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