Skip to content
This repository has been archived by the owner on Feb 5, 2025. It is now read-only.

Add exact calculation of encoded transaction size #202

Merged
merged 12 commits into from
Oct 29, 2024

Conversation

dailinsubjam
Copy link
Contributor

@dailinsubjam dailinsubjam commented Oct 25, 2024

Closes #169
This is the same PR as #195. That one is closed because the branch name is updated. Sorry about any confusion.

This PR:

This PR does not:

Key places to review:

@coveralls
Copy link

coveralls commented Oct 25, 2024

Pull Request Test Coverage Report for Build 11561695375

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • 2 unchanged lines in 2 files lost coverage.
  • Overall coverage decreased (-0.06%) to 71.907%

Files with Coverage Reduction New Missed Lines %
crates/legacy/src/builder_state.rs 1 83.46%
crates/marketplace/src/builder_state.rs 1 73.44%
Totals Coverage Status
Change from base Build 11508863210: -0.06%
Covered Lines: 2383
Relevant Lines: 3314

💛 - Coveralls

Copy link
Member

@shenkeyao shenkeyao left a comment

Choose a reason for hiding this comment

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

Same reminder as in the previous PR to update the dependencies. 😃

@dailinsubjam dailinsubjam requested a review from QuentinI October 28, 2024 21:01
@dailinsubjam dailinsubjam changed the base branch from main to hotshot/rc-0.5.79 October 29, 2024 00:27
@dailinsubjam dailinsubjam merged commit 8953206 into hotshot/rc-0.5.79 Oct 29, 2024
7 checks passed
@dailinsubjam dailinsubjam deleted the sishan/trait_builder_transaction branch October 29, 2024 00:35
dailinsubjam added a commit to EspressoSystems/espresso-sequencer that referenced this pull request Oct 29, 2024
…tion trait (#2222)

Closes
EspressoSystems/marketplace-builder-core#169
<!-- These comments should help create a useful PR message, please
delete any remaining comments before opening the PR. -->
<!-- If there is no issue number make sure to describe clearly *why*
this PR is necessary. -->
<!-- Mention open questions, remaining TODOs, if any -->

### This PR:
- implement the trait for Transaction defined in sequencer, substitute
all places calculating tx size to the use of this function
- changes are together with
Hotshot changes: EspressoSystems/HotShot#3800
Builder changes:
EspressoSystems/marketplace-builder-core#202
<!-- Describe what this PR adds to this repo and why -->
<!-- E.g. -->
<!-- * Implements feature 1 -->
<!-- * Fixes bug 3 -->

### This PR does not:
<!-- Describe what is out of scope for this PR, if applicable. Leave
this section blank if it's not applicable -->
<!-- This section helps avoid the reviewer having to needlessly point
out missing parts -->
<!-- * Implement feature 3 because that feature is blocked by Issue 4
-->
<!-- * Implement xyz because that is tracked in issue #123. -->
<!-- * Address xzy for which I opened issue #456 -->

### Key places to review:
<!-- Describe key places for reviewers to pay close attention to -->
<!-- * file.rs, `add_integers` function -->
<!-- Or directly comment on those files/lines to make it easier for the
reviewers -->

<!-- ### How to test this PR:  -->
<!-- Optional, uncomment the above line if this is relevant to your PR
-->
<!-- If your PR is fully tested through CI there is no need to add this
section -->
<!-- * E.g. `just test` -->

<!-- ### Things tested -->
<!-- Anything that was manually tested (that is not tested in CI). -->
<!-- E.g. building/running of docker containers. Changes to docker demo,
... -->
<!-- Especially mention anything untested, with reasoning and link an
issue to resolve this. -->

<!-- Complete the following items before creating this PR -->
<!-- [ ] Issue linked or PR description mentions why this change is
necessary. -->
<!-- [ ] PR description is clear enough for reviewers. -->
<!-- [ ] Documentation for changes (additions) has been updated (added).
-->
<!-- [ ] If this is a draft it is marked as "draft".  -->

<!-- To make changes to this template edit
https://github.com/EspressoSystems/.github/blob/main/PULL_REQUEST_TEMPLATE.md
-->
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Cartesi Issues] - Exact calculation of encoded transaction size
3 participants