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

implement provider.api.rpc.engine.createBlock #91

Closed
shunjizhan opened this issue Dec 14, 2022 · 4 comments
Closed

implement provider.api.rpc.engine.createBlock #91

shunjizhan opened this issue Dec 14, 2022 · 4 comments

Comments

@shunjizhan
Copy link
Contributor

not necessary for functionalities, but some bodhi tests use it, so it's a nice to have for bodhi compatibility

@xlc
Copy link
Member

xlc commented Dec 14, 2022

we have dev_newBlock already. I guess we can alias it to be bit more compatible with existing scripts using manual seal

@DrW3RK
Copy link

DrW3RK commented Dec 15, 2022

I might need help with this - How can I issue the RPC call to fast-forward the chain #71 ? I do not see an option on Polkadot-JS UI.

@xlc
Copy link
Member

xlc commented Dec 15, 2022

polkadot.js apps doesn't have good support of custom/known RPC so you will need use some other tool to make the RPC call.

I am currently using Postman but there are many good alternative tools available for making WS RPC calls.

For fast forward, you can do this

{
    "id": 2,
    "jsonrpc": "2.0",
    "method": "dev_newBlock",
    "params": [{"count": 10}]
}

Note that due to #83 it is still going to take few seconds to build each block

@ermalkaleci
Copy link
Collaborator

@DrW3RK you can use polkadotjs/app to trigger rpc call like this
Screenshot 2022-12-17 at 10 13 39 PM

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

No branches or pull requests

4 participants