Skip to content

Commit

Permalink
tests/txsource: Enable checkpointing
Browse files Browse the repository at this point in the history
  • Loading branch information
jberci committed Sep 4, 2020
1 parent f7be5a4 commit d7f57c1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions go/oasis-test-runner/scenario/e2e/runtime/txsource.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,11 @@ func (sc *txSourceImpl) Fixture() (*oasis.NetworkFixture, error) {
// Disable CheckTx on the client node so we can submit invalid transactions.
f.Clients[0].Consensus.DisableCheckTx = true

// Set up checkpointing.
f.Runtimes[1].Storage.CheckpointInterval = 1000
f.Runtimes[1].Storage.CheckpointNumKept = 2
f.Runtimes[1].Storage.CheckpointChunkSize = 1024 * 1024

// Use at least 4 validators so that consensus can keep making progress
// when a node is being killed and restarted.
f.Validators = []oasis.ValidatorFixture{
Expand Down

0 comments on commit d7f57c1

Please sign in to comment.