/
init.go
29 lines (26 loc) · 1.03 KB
/
init.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package committee
import (
"github.com/oasisprotocol/oasis-core/go/common/crash"
)
const (
crashPointBatchReceiveAfter = "worker.executor.batch.receive.after"
crashPointBatchProcessStartAfter = "worker.executor.batch.process_start.after"
crashPointBatchAbortAfter = "worker.executor.batch.abort.after"
crashPointBatchProposeBefore = "worker.executor.batch.propose.before"
crashPointBatchProposeAfter = "worker.executor.batch.propose.after"
crashPointDiscrepancyDetectedAfter = "worker.executor.batch.discrepancy_detected.after"
crashPointRoothashReceiveAfter = "worker.executor.batch.roothash.receive.after"
crashPointBatchPublishAfter = "worker.executor.batch.schedule.publish.after"
)
func init() {
crash.RegisterCrashPoints(
crashPointBatchReceiveAfter,
crashPointBatchProcessStartAfter,
crashPointBatchAbortAfter,
crashPointBatchProposeBefore,
crashPointBatchProposeAfter,
crashPointDiscrepancyDetectedAfter,
crashPointRoothashReceiveAfter,
crashPointBatchPublishAfter,
)
}