Bft block period transition (#2902)

Allow block period to be configured using transitions for IBFT2 and QBFT

Signed-off-by: Jason Frame <jasonwframe@gmail.com>
This commit is contained in:
Jason Frame
2021-10-19 15:31:25 +10:00
committed by GitHub
parent 73ddc6aec2
commit 0e0d67dbe5
14 changed files with 501 additions and 38 deletions

View File

@@ -27,6 +27,12 @@ public class TestClock extends Clock {
private Instant now = Instant.ofEpochSecond(24982948294L);
public TestClock() {}
public TestClock(final Instant now) {
this.now = now;
}
@Override
public ZoneId getZone() {
return ZoneOffset.UTC;