Search Results
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 |
Oracle-like capabilities for Substrate chains.
1
vote
How to comprehend the hooks of Substrate? Such as `on_initialize`, `on_finialize` and `offch...
Offchain workers modify storage by submitting a txn. And the order of execution is Offchain worker does not interfere with other txn and they are run on block importation.
The other hooks run on bloc …
1
vote
Accepted
Enabling off-chain workers for substrate-node-template
So go to node -> service and inside new_partial fn add:
if config.offchain_worker.enabled{
sp_keystore::SyncCryptoStore::sr25519_generate_new(
&*keystore,
node_template_runtime::<y …
0
votes
How to write a dispatch function which can only access from offchain worker with signed extr...
The pallet::call macro requires the function to be public. So it's either in the frontend you just don't expose the function but anyhow a user can access the function (using polkadot js to interact wi …