Skip to content
Commit c2613533 authored by Andrei Sandu's avatar Andrei Sandu Committed by GitHub
Browse files

Make rolling session more resilient in case of long finality stalls (#6106)



* Impl dynamic window size. Keep sessions for unfinalized chain

Signed-off-by: default avatarAndrei Sandu <[email protected]>

* feedback

Signed-off-by: default avatarAndrei Sandu <[email protected]>

* Stretch also in contructor plus  tests

Signed-off-by: default avatarAndrei Sandu <[email protected]>

* review feedback

Signed-off-by: default avatarAndrei Sandu <[email protected]>

* fix approval-voting tests

Signed-off-by: default avatarAndrei Sandu <[email protected]>

* grunting: dispute coordinator tests

Signed-off-by: default avatarAndrei Sandu <[email protected]>

* add session window column

Signed-off-by: default avatarAndrei Sandu <[email protected]>

* integrate approval vote and fix tests

Signed-off-by: default avatarAndrei Sandu <[email protected]>

* fix rolling session tests

Signed-off-by: default avatarAndrei Sandu <[email protected]>

* Small refactor

Signed-off-by: default avatarAndrei Sandu <[email protected]>

* WIP, tests failing

Signed-off-by: default avatarAndrei Sandu <[email protected]>

* Fix approval voting tests

Signed-off-by: default avatarAndrei Sandu <[email protected]>

* fix dispute-coordinator tests

Signed-off-by: default avatarAndrei Sandu <[email protected]>

* remove uneeded param

Signed-off-by: default avatarAndrei Sandu <[email protected]>

* fmt

Signed-off-by: default avatarAndrei Sandu <[email protected]>

* fix loose ends

Signed-off-by: default avatarAndrei Sandu <[email protected]>

* allow failure and tests for it

Signed-off-by: default avatarAndrei Sandu <[email protected]>

* fix comment

Signed-off-by: default avatarAndrei Sandu <[email protected]>

* comment fix

Signed-off-by: default avatarAndrei Sandu <[email protected]>

* style fix

Signed-off-by: default avatarAndrei Sandu <[email protected]>

* new col doesn't need to be ordered

Signed-off-by: default avatarAndrei Sandu <[email protected]>

* fmt and spellcheck

Signed-off-by: default avatarAndrei Sandu <[email protected]>

* db persist tests

Signed-off-by: default avatarAndrei Sandu <[email protected]>

* Add v2 config and cols

Signed-off-by: default avatarAndrei Sandu <[email protected]>

* DB upgrade WIP

Signed-off-by: default avatarAndrei Sandu <[email protected]>

* Fix comments

Signed-off-by: default avatarAndrei Sandu <[email protected]>

* add todo

Signed-off-by: default avatarAndrei Sandu <[email protected]>

* update to parity-db to "0.4.2"

Signed-off-by: default avatarAndrei Sandu <[email protected]>

* migration complete

Signed-off-by: default avatarAndrei Sandu <[email protected]>

* One session window size

Signed-off-by: default avatarAndrei Sandu <[email protected]>

* fix merge damage

Signed-off-by: default avatarAndrei Sandu <[email protected]>

* fix build errors

Signed-off-by: default avatarAndrei Sandu <[email protected]>

* fmt

Signed-off-by: default avatarAndrei Sandu <[email protected]>

* comment fix

Signed-off-by: default avatarAndrei Sandu <[email protected]>

* fix build

Signed-off-by: default avatarAndrei Sandu <[email protected]>

* make error more explicit

Signed-off-by: default avatarAndrei Sandu <[email protected]>

* add comment

Signed-off-by: default avatarAndrei Sandu <[email protected]>

* refactor conflict merge

Signed-off-by: default avatarAndrei Sandu <[email protected]>

* rename col_data

Signed-off-by: default avatarAndrei Sandu <[email protected]>

* add doc comment

Signed-off-by: default avatarAndrei Sandu <[email protected]>

* fix build

Signed-off-by: default avatarAndrei Sandu <[email protected]>

* migration: move all cols to v2

Signed-off-by: default avatarAndrei Sandu <[email protected]>

Signed-off-by: default avatarAndrei Sandu <[email protected]>
parent be4b5fad
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment