This repository was 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.7k
Multi-phase elections solution resubmission #8290
Merged
Merged
Changes from all commits
Commits
Show all changes
54 commits
Select commit
Hold shift + click to select a range
62e1854
not climate
coriolinus 9a8c4a2
explain the intent of the bool in the unsigned phase
coriolinus 19d7251
remove glob imports from unsigned.rs
coriolinus 02ad14b
add OffchainRepeat parameter to ElectionProviderMultiPhase
coriolinus f6a0fd9
migrate core logic from #7976
coriolinus 59a0fb4
improve formatting
coriolinus 4612d07
fix test build failures
coriolinus c8ccbe9
cause test to pass
coriolinus 7e4408f
Merge remote-tracking branch 'origin/master' into prgn-runtime-resubmit
coriolinus f4b50fc
Apply suggestions from code review
coriolinus a192ba3
collapse imports
coriolinus 81ceca1
threshold acquired directly within try_acquire_offchain_lock
coriolinus 9023b61
Merge remote-tracking branch 'origin/master' into prgn-runtime-resubmit
coriolinus 449b799
add test of resubmission after interval
coriolinus 85f715e
add test that ocw can regenerate a failed cache when resubmitting
coriolinus c6ecab8
ensure that OCW solutions are of the correct round
coriolinus ad3b786
add test of pre-dispatch round check
coriolinus bee456c
Merge remote-tracking branch 'origin/master' into prgn-runtime-resubmit
coriolinus 89cf445
use `RawSolution.round` instead of redundantly externally
coriolinus 458682b
unpack imports
coriolinus d7dbcc0
rename `OFFCHAIN_HEAD_DB` -> `OFFCHAIN_LOCK`
coriolinus b3e4950
rename `mine_call` -> `mine_checked_call`
coriolinus 0b77268
eliminate extraneous comma
coriolinus 576f87c
check cached call is current before submitting
coriolinus d0f031a
Merge remote-tracking branch 'origin/master' into prgn-runtime-resubmit
coriolinus 681e6f0
remove unused consts introduced by bad merge.
coriolinus 0fac518
Merge remote-tracking branch 'origin/master' into prgn-runtime-resubmit
coriolinus 276a06a
Merge branch 'prgn-runtime-resubmit' of github.com:paritytech/substra…
coriolinus ea3fc29
resubmit when our solution beats queued solution
coriolinus cc70d37
clear call cache if solution fails to submit
coriolinus 4b46a93
use local storage; clear on ElectionFinalized
coriolinus 224d5e1
Revert "use local storage; clear on ElectionFinalized"
coriolinus c5668e9
BROKEN: try to filter local events in OCW
coriolinus e9305be
use local storage; simplify score fetching
coriolinus fe84141
fix event filter
coriolinus 8b31773
mutate storage instead of setting it
coriolinus 9978693
StorageValueRef::local isn't actually implemented yet
coriolinus ebcdeaa
add logging for some events of interest in OCW miner
coriolinus 0236288
Merge remote-tracking branch 'origin/master' into prgn-runtime-resubmit
coriolinus bd7a195
rename kill_solution -> kill_ocw_solution to avoid ambiguity
coriolinus 1c896be
defensive err instead of unreachable given unreachable code
coriolinus 2243501
doc punctuation
coriolinus 2b5d050
distinguish miner errors between "out of date" and "call invalid"
coriolinus 5eb2673
downgrade info logs -> debug
coriolinus f12d59d
Merge remote-tracking branch 'origin/master' into prgn-runtime-resubmit
coriolinus 70b4f71
ensure encoded call decodes as a call
coriolinus 9c28048
fix semantics of validation of pre-dispatch failure for wrong round
coriolinus 3f1109b
move score check within `and_then`
coriolinus af2d2c6
add test that offchain workers clear their cache after election
coriolinus fc71d3d
ensure that bad ocw submissions are not retained for resubmission
coriolinus 840bad3
simplify fn ocw_solution_exists
coriolinus 8eaf481
add feasibility check when restoring cached solution
coriolinus f4b52f0
simplify checks again
coriolinus 6ae73c4
Merge remote-tracking branch 'origin/master' into prgn-runtime-resubmit
coriolinus 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
This file contains hidden or 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 hidden or 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 hidden or 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.
Uh oh!
There was an error while loading. Please reload this page.