You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 1, 2019. It is now read-only.
We want to have two modes of operation when it comes to consuming blocks from the node. The old one (well tested, but introducing coupling) based on readerT mechanism and in essence being the push mechanism with all the responsibility of tracking consumed blocks laying on the node side. The new pull mechanism is based on active wallet side, polling tip of the block and requesting proper blocks (it is not fully tested but introduces decoupling from the node). As in the pull mechanism the responsibility to track blocks to be downloaded is on the wallet side we have to introduce mechanism of persistence. In case of push mechanism the node db is persisting all info needed to resume operation after stop. In order to have proper stop/restart we need to persist last consumed header block.
Decision
We will add last header storage added to already existed persistance mechanism for sql db and checkpoints with flush every time the new header is consumed.
Acceptance Criterias
Persistance of the header of lastly consumed block has to be in wallet-db-path
The mechanism must only work for pull mechanism
Continuity of blocks has to be guaranteed (no holes) and all start/stop/restart scenarios (normal/backfilling/restoration) has to work properly
Development Plan
Added persistence of header of lastly consumed block using pull mechanism (backfilling and restoration does not count here)
Test start/stop/restart with different configurations (normal, backfilling, restoration)
update documentation accordingly
header persistance has to take place only when -pull-mechanism is used. No persistance in case of default push mechanism
PR
Number
Base
develop
QA
Criteria
Coverage
?
-
Retrospective
The text was updated successfully, but these errors were encountered:
Context
We want to have two modes of operation when it comes to consuming blocks from the node. The old one (well tested, but introducing coupling) based on readerT mechanism and in essence being the push mechanism with all the responsibility of tracking consumed blocks laying on the node side. The new pull mechanism is based on active wallet side, polling tip of the block and requesting proper blocks (it is not fully tested but introduces decoupling from the node). As in the pull mechanism the responsibility to track blocks to be downloaded is on the wallet side we have to introduce mechanism of persistence. In case of push mechanism the node db is persisting all info needed to resume operation after stop. In order to have proper stop/restart we need to persist last consumed header block.
Decision
We will add last header storage added to already existed persistance mechanism for sql db and checkpoints with flush every time the new header is consumed.
Acceptance Criterias
wallet-db-path
Development Plan
-pull-mechanism
is used. No persistance in case of default push mechanismPR
develop
QA
Retrospective
The text was updated successfully, but these errors were encountered: