feat: stratus_reset instead of debug_setHead #1560
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Type
Enhancement, Tests
Description
debug_setHead
withstratus_reset
andhardhat_reset
in the RPC server.reset_at
toreset
in various storage implementations and added#[cfg(feature = "dev")]
attribute.stratus_reset
instead ofdebug_setHead
.sendReset
function by removing conditional check forisStratus
.debug_setHead
withstratus_reset
.Changes walkthrough 📝
8 files
rpc_server.rs
Replace debug_setHead with stratus_reset and hardhat_reset
src/eth/rpc/rpc_server.rs
debug_setHead
withstratus_reset
andhardhat_reset
debug_set_head
functionstratus_reset
functioninmemory_permanent.rs
Rename reset_at to reset with dev feature flag
src/eth/storage/inmemory/inmemory_permanent.rs
reset_at
toreset
#[cfg(feature = "dev")]
attribute toreset
functionpermanent_storage.rs
Rename reset_at to reset with dev feature flag
src/eth/storage/permanent_storage.rs
reset_at
toreset
#[cfg(feature = "dev")]
attribute toreset
functionredis_permanent.rs
Rename reset_at to reset with dev feature flag
src/eth/storage/redis/redis_permanent.rs
reset_at
toreset
#[cfg(feature = "dev")]
attribute toreset
functionrocks_permanent.rs
Rename reset_at to reset with dev feature flag
src/eth/storage/rocks/rocks_permanent.rs
reset_at
toreset
#[cfg(feature = "dev")]
attribute toreset
functionstratus_storage.rs
Update reset function to remove block number parameter
src/eth/storage/stratus_storage.rs
reset
function to remove block number parameter#[cfg(feature = "dev")]
attribute toreset
functionrpc.ts
Simplify sendReset function
e2e/test/helpers/rpc.ts
isStratus
insendReset
functionbrlc-yield-streamer.patch
Replace debug_setHead with stratus_reset in patch
e2e/cloudwalk-contracts/patches/brlc-yield-streamer.patch
debug_setHead
withstratus_reset
in patch2 files
e2e-json-rpc.test.ts
Replace debug_setHead with stratus_reset in tests
e2e/test/automine/e2e-json-rpc.test.ts
debug_setHead
withstratus_reset
in testse2e-json-rpc.test.ts
Replace debug_setHead with stratus_reset in tests
e2e/test/external/e2e-json-rpc.test.ts
debug_setHead
withstratus_reset
in tests