github.com/hyperion-hyn/go-ethereum@v2.4.0+incompatible/raft/constants.go (about) 1 package raft 2 3 import ( 4 etcdRaft "github.com/coreos/etcd/raft" 5 ) 6 7 const ( 8 protocolName = "raft" 9 protocolVersion uint64 = 0x01 10 11 raftMsg = 0x00 12 13 minterRole = etcdRaft.LEADER 14 verifierRole = etcdRaft.NOT_LEADER 15 16 // Raft's ticker interval 17 tickerMS = 100 18 19 // We use a bounded channel of constant size buffering incoming messages 20 msgChanSize = 1000 21 22 // Snapshot after this many raft messages 23 // 24 // TODO: measure and get this as low as possible without affecting performance 25 // 26 snapshotPeriod = 250 27 28 peerUrlKeyPrefix = "peerUrl-" 29 30 chainExtensionMessage = "Successfully extended chain" 31 ) 32 33 var ( 34 appliedDbKey = []byte("applied") 35 )