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

Opening a new shard fix #104

Merged
merged 21 commits into from
Sep 3, 2024
Merged

Opening a new shard fix #104

merged 21 commits into from
Sep 3, 2024

Conversation

syntrust
Copy link
Contributor

@syntrust syntrust commented Aug 16, 2024

Correct the shardId computation when uploading blobs in batch.
Also for accurate upfront payment.

Discover: putBlobs reverts when a new shard is opening when doing the tests:

Run the following cmd with code ethstorage/es-node#187

env ES_NODE_SIGNER_PRIVATE_KEY=<pk> ./integration_tests/run_tests.sh

which covers calling putBlobs with msg.value got from upfrontPaymentInBatch(uint256 _batchSize)

@syntrust syntrust requested review from qzhodl and iteyelmp August 19, 2024 10:52
contracts/StorageContract.sol Outdated Show resolved Hide resolved
contracts/StorageContract.sol Outdated Show resolved Hide resolved
contracts/test/EthStorageContractTest.t.sol Show resolved Hide resolved
@qzhodl
Copy link
Contributor

qzhodl commented Aug 27, 2024

Was there a testing scenario that led you to discover this issue? If so, it would be helpful to describe the bug in the PR description.

@syntrust syntrust requested a review from qzhodl August 29, 2024 03:28
@syntrust syntrust merged commit 3254603 into main Sep 3, 2024
1 check 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.

3 participants