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
SBFT used the ledger and an iterator to get the last
batch. This commit changes this and tries to use a
"local copy" that is generally a field in the backend
struct.
There are two cases:
- backend (System implementation) only knows about
Genesis, we can assume that the last batch is one
with an empty header, empty signatures and empty
payload batch
- backend's Deliver is called on (re)connection or
at batch delivery - here we can use the argument
(batch of type Batch) to update the last batch
Change-Id: Ibd381347df832643a547a3b05bdc7331f4fb1382
Signed-off-by: Gabor Hosszu <[email protected]>
0 commit comments