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

Blob test tool files moved #6168

Merged
merged 5 commits into from
Oct 11, 2023
Merged

Conversation

ak88
Copy link
Contributor

@ak88 ak88 commented Oct 6, 2023

Fixes Closes Resolves #

Please choose one of the keywords above to refer to the issue this PR solves followed by the issue number (e.g. Fixes #000). If no issue number, remove the line. Also, remove everything marked optional that is not applicable. Remove this note after reading.

Changes

  • List the changes

Types of changes

What types of changes does your code introduce?

  • Bugfix (a non-breaking change that fixes an issue)
  • New feature (a non-breaking change that adds functionality)
  • Breaking change (a change that causes existing functionality not to work as expected)
  • Optimization
  • Refactoring
  • Documentation update
  • Build-related changes
  • Other: Description

Testing

Requires testing

  • Yes
  • No

If yes, did you write tests?

  • Yes
  • No

Notes on testing

Optional. Remove if not applicable.

Documentation

Requires documentation update

  • Yes
  • No

If yes, link the PR to the docs update or the issue with the details labeled docs. Remove if not applicable.

Requires explanation in Release Notes

  • Yes
  • No

If yes, fill in the details here. Remove if not applicable.

Remarks

Optional. Remove if not applicable.
Send blobs tool now includes:

  • Command line parsing of args.
  • Ability to distribute funds to many private keys and use a different sender for each blob tx.
  • Reclaiming the distributed funds when testing is done.
  • Ability to wait for block inclusion before posting the next.
  • Args for settings gas parameters explicitly.
  • Moved project to the tools directory.
  • Own solution file.

@ak88 ak88 marked this pull request as ready for review October 9, 2023 09:21
@flcl42 flcl42 self-requested a review October 9, 2023 10:34
tools/SendBlobs/FundsDistributor.cs Outdated Show resolved Hide resolved
Comment on lines 38 to 39
string? gasPriceRes = await nodeManager.Post<string>("eth_gasPrice") ?? "1";
UInt256 gasPrice = (UInt256)Convert.ToUInt64(gasPriceRes, gasPriceRes.StartsWith("0x") ? 16 : 10);
Copy link
Member

Choose a reason for hiding this comment

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

Could we introduce methods that call into json-rpc and parse the results?
We have them for balance, nonce, gasPrice, maxPriorityFeePerGas - separate methods for each.

Copy link
Contributor

Choose a reason for hiding this comment

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

@LukaszRozmej do you mean we can have these methods or we already have them?
We have partially typed methods in EthCliModule btw, we may try to improve it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am not sure exactly which module you are referring to. The EthCliModule parses mostly to JsValue, is that what you mean?

Copy link
Contributor

Choose a reason for hiding this comment

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

Let's address it in another PR, by improving Nethermind's cli types.

tools/SendBlobs/FundsDistributor.cs Outdated Show resolved Hide resolved
tools/SendBlobs/FundsDistributor.cs Outdated Show resolved Hide resolved
tools/SendBlobs/FundsDistributor.cs Outdated Show resolved Hide resolved
tools/SendBlobs/FundsDistributor.cs Outdated Show resolved Hide resolved
tools/SendBlobs/FundsDistributor.cs Outdated Show resolved Hide resolved
tools/SendBlobs/Program.cs Outdated Show resolved Hide resolved
tools/SendBlobs/Program.cs Outdated Show resolved Hide resolved
tools/SendBlobs/Program.cs Outdated Show resolved Hide resolved
@flcl42 flcl42 merged commit d67d44f into NethermindEth:master Oct 11, 2023
61 checks passed
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.

None yet

3 participants