Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Duniter v2S
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nodes
rust
Duniter v2S
Commits
4e451756
"git@git.duniter.org:clients/gecko.git" did not exist on "f1208846fc32a5da882ce03a8202528c1ee7ae65"
Commit
4e451756
authored
2 years ago
by
Éloïs
Browse files
Options
Downloads
Patches
Plain Diff
doc(test): document how to replay a block.
parent
84a57ca1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/test/replay-block.md
+21
-0
21 additions, 0 deletions
docs/test/replay-block.md
with
21 additions
and
0 deletions
docs/test/replay-block.md
0 → 100644
+
21
−
0
View file @
4e451756
# How to replay a block
You can use
`try-runtime`
subcommand to replay a block against a real satte from a live network.
1.
Checkout the git tag of the runtime version at the block you want to replay
2.
Build duniter with feature
`try-runtime`
:
`cargo build --features try-runtime`
3.
Find the hash of the block to replay
4.
Choose an RPC endpoint without path (try-runtime not support path)
5.
Replay the block a first time to get the state:
```
duniter try-runtime --exectuion=Native execute-block --block-at 0x2633026e3e428b010cfe08d215b6253843a9fe54db28748ca56de37e6a83c644 live -s tmp/snapshot1 -u ws://localhost:9944
```
6.
Then, replay the block as many times as you need against your local snapshot:
```
duniter try-runtime --exectuion=Native execute-block --block-at 0x2633026e3e428b010cfe08d215b6253843a9fe54db28748ca56de37e6a83c644 --block-ws-uri ws://localhost:9944 snap -s tmp/snapshot1
```
try-runtime does not allow (for now) to store the block locally, only the storage can be stored.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment