This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Initial: Offchain Workers #1942
Merged
Merged
Changes from 26 commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
28faa01
Refactor state-machine stuff.
tomusdrw d0597bf
Merge branch 'master' into td-state-machine
tomusdrw eb63210
Fix tests.
tomusdrw 98cbd8d
WiP
tomusdrw 4ba2fb3
WiP2
tomusdrw af67cf0
Merge branch 'master' into td-offlineworker
tomusdrw acd003e
Service support for offchain workers.
tomusdrw 1d55220
Service support for offchain workers.
tomusdrw c12dbb9
Testing offchain worker.
tomusdrw 95c22f3
Merge remote-tracking branch 'origin/td-offlineworker' into td-offlin…
tomusdrw c76c996
Merge branch 'master' into td-offlineworker
tomusdrw 66d484d
Initial version working.
tomusdrw bf49911
Pass side effects in call.
tomusdrw 45b6d68
Pass OffchainExt in context.
tomusdrw 049a4e5
Submit extrinsics to the pool.
tomusdrw 07082be
Merge branch 'master' into td-offlineworker
tomusdrw 37afd7d
Support inherents.
tomusdrw c820a89
Insert to inherents pool.
tomusdrw 646c20e
Inserting to the pool asynchronously.
tomusdrw f953ffe
Add test to offchain worker.
tomusdrw b10b7d2
Implement convenience syntax for modules.
tomusdrw 2d8b6f9
Dispatching offchain worker through executive.
tomusdrw 3f2a8ec
Fix offchain test.
tomusdrw 301fd98
Remove offchain worker from timestamp.
tomusdrw e026333
Merge branch 'master' into td-offlineworker
tomusdrw f577822
Update Cargo.lock.
tomusdrw fa56420
Address review comments.
tomusdrw d1d6287
Merge branch 'master' into td-offlineworker
tomusdrw cba1e39
Use latest patch version for futures.
tomusdrw 5f927a4
Add CLI parameter for offchain worker.
tomusdrw 63c970a
Fix compilation.
tomusdrw 34b3e3b
Fix test.
tomusdrw c669a1b
Fix extrinsics format for tests.
tomusdrw 5778dcc
Fix RPC test.
tomusdrw e0219e3
Merge branch 'master' into td-offlineworker
tomusdrw 79ae654
Merge branch 'master' into td-offlineworker
tomusdrw 5713923
Bump spec version.
tomusdrw ed764bc
Fix executive.
tomusdrw f9c1621
Fix support macro.
tomusdrw a8d2f33
Merge branch 'master' into td-offlineworker
tomusdrw cbdb76f
Merge branch 'master' into td-offlineworker
tomusdrw 5036cd2
Merge branch 'master' into td-offlineworker
tomusdrw d20980d
Address grumbles.
tomusdrw dd8a756
Merge branch 'master' into td-offlineworker
tomusdrw 994918a
Merge remote-tracking branch 'origin/master' into td-offlineworker
gavofyork aa37a4c
Bump runtime
gavofyork File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should it always be
NativeWhenPossible
or configurable by the user at some point?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could be configurable primarily to keep it consistent with all the other wasm execution. But I don't see any instance where you would not want to use native if it's there.
Maybe in debugging...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I was not sure as well, but if it does not need to be configurable, we don't need to touch this struct at all.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll add the option for consistency.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
given that native workers are not consensus critical,
NativeWhenPossible
seems like the most reasonable strategy