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

Slavas/bm inject tx #12899

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft

Slavas/bm inject tx #12899

wants to merge 4 commits into from

Conversation

ssavenko-near
Copy link
Contributor

No description provided.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This will need to be merged/de-duplicated with synth-bm once that makes it into the workspace

tracing::warn!(target: "transaction-generator", "failed to update the transactions validity range");
}
}
// _ = &mut rx => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Appears to be triggered by moving tx. Did not figure out yet how to work-around it. Anyway we do not have stop() yet.

Copy link

codecov bot commented Feb 12, 2025

Codecov Report

Attention: Patch coverage is 3.80435% with 177 lines in your changes missing coverage. Please review.

Project coverage is 70.46%. Comparing base (0e21730) to head (b04809a).
Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
benchmarks/transactions-generator/src/lib.rs 0.00% 111 Missing ⚠️
benchmarks/transactions-generator/src/account.rs 0.00% 44 Missing ⚠️
...nchmarks/transactions-generator/src/actix_actor.rs 0.00% 22 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #12899      +/-   ##
==========================================
- Coverage   70.54%   70.46%   -0.09%     
==========================================
  Files         851      854       +3     
  Lines      174914   175104     +190     
  Branches   174914   175104     +190     
==========================================
- Hits       123395   123384      -11     
- Misses      46397    46595     +198     
- Partials     5122     5125       +3     
Flag Coverage Δ
backward-compatibility 0.36% <0.00%> (-0.01%) ⬇️
db-migration 0.36% <0.00%> (-0.01%) ⬇️
genesis-check 1.43% <28.57%> (+<0.01%) ⬆️
linux 70.33% <3.80%> (-0.07%) ⬇️
linux-nightly 70.09% <3.80%> (-0.10%) ⬇️
pytests 1.73% <28.57%> (+<0.01%) ⬆️
sanity-checks 1.54% <28.57%> (+<0.01%) ⬆️
unittests 70.29% <3.80%> (-0.09%) ⬇️
upgradability 0.36% <0.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@akhi3030 akhi3030 left a comment

Choose a reason for hiding this comment

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

high level approach looks good. Where do we check if the transactions succeeded or failed?

Self { id, public_key: secret_key.public_key(), secret_key, nonce }
}

pub fn from_file(path: &Path) -> anyhow::Result<Account> {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can this function not just panic? If it is failing then that means we will probably fail to start the application. I imagine that there isn't much that can be done [from within the application] if this fails. I am not a fan of unnecessary error passing and handling in relatively straightforward cli applications.

Copy link
Collaborator

Choose a reason for hiding this comment

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

further would extend this comment to the rest of the PR.

Also please do not invest time making changes to address this review yet till we have alignment on the overall approach.

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.

synth-bench: inject the transactions bypassing the json-rpc nodes
2 participants