Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Ğ
Ğcli-v2s
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
clients
Rust
Ğcli-v2s
Commits
5d268ba1
Commit
5d268ba1
authored
1 year ago
by
Hugo Trentesaux
Browse files
Options
Downloads
Patches
Plain Diff
add manual sealing
parent
3d21841c
No related branches found
No related tags found
1 merge request
!9
add smith and membership commands
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/example.md
+3
-1
3 additions, 1 deletion
doc/example.md
src/commands/blockchain.rs
+9
-0
9 additions, 0 deletions
src/commands/blockchain.rs
with
12 additions
and
1 deletion
doc/example.md
+
3
−
1
View file @
5d268ba1
...
...
@@ -41,11 +41,13 @@ gcli ud claim
gcli account transfer 5000 5E4i8vcNjnrDp21Sbnp32WHm2gz8YP3GGFwmdpfg5bHd8Whb
```
If you want
to submit extrinsic
s
without
tracking progress:
For testing purpose it can be useful
to submit extrinsic without
waiting for result and create block manually.
```
sh
# only submit extrinsic to network and do not listen to result
gcli
--no-wait
account transfer 1234 5FeggKqw2AbnGZF9Y9WPM2QTgzENS3Hit94Ewgmzdg5a3LNa
# create block manually (with manual sealing)
gcli blockchain create-block
```
## Indexer commands
...
...
This diff is collapsed.
Click to expand it.
src/commands/blockchain.rs
+
9
−
0
View file @
5d268ba1
...
...
@@ -18,6 +18,9 @@ pub enum Subcommand {
/// Check current block
#[default]
CurrentBlock
,
/// Create one block manually (manual sealing)
#[clap(hide
=
true
)]
CreateBlock
,
}
/// handle blockchain commands
...
...
@@ -46,6 +49,12 @@ pub async fn handle_command(data: Data, command: Subcommand) -> anyhow::Result<(
.unwrap
()
);
}
Subcommand
::
CreateBlock
=>
{
data
.client
()
.rpc
()
.request
(
"engine_createBlock"
,
subxt
::
rpc
::
rpc_params!
[
true
,
true
])
// create empty block and finalize
.await
?
;
// FIXME this gives a serialization error
}
}
Ok
(())
}
...
...
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