Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 393

Oracle-like capabilities for Substrate chains.

4 votes

When does an off-chain worker get executed?

Except your question about ocw, for your target "So before this storage changes I want to use offchain_worker() to dump storage to some http server", I think it's not a great scenario to use OCW/OCS. …
ironman_ch_parami's user avatar
2 votes

Persistent Offchain Worker Storage

I think StorageKind is used to distinguish between different behavior when block revert or fork happens. And, if storage use memory or disk is depends on the DatabaseSettings.source configuration, suc …
ironman_ch_parami's user avatar
2 votes
Accepted

Only one node should make http call from OCW

"And have a question is it possible to configure OCW so that if one node starts an HTTP call in OCW other nodes will skip it", you can add a judgement to make sure only the author of the block will ex …
ironman_ch_parami's user avatar
2 votes
Accepted

Is it possible to query an OCW's Off-chain storage via RPC from an external service?

Yes, Custom RPC work for the off-chain runtime. Custom Rpc Doc For example, you can define custom rpc in the following way: #[rpc] public trait SomeOcsApi { #[rpc(name="some_method")] fn some …
ironman_ch_parami's user avatar