dione/consensus/types/message.go

23 lines
335 B
Go
Raw Normal View History

package types
2020-11-15 13:46:58 +00:00
import (
"github.com/Secured-Finance/dione/types"
2020-11-15 13:46:58 +00:00
"github.com/libp2p/go-libp2p-core/peer"
)
type MessageType uint8
const (
MessageTypeUnknown = MessageType(iota)
MessageTypePrePrepare
MessageTypePrepare
MessageTypeCommit
)
type ConsensusMessage struct {
Task types.DioneTask
2021-06-02 21:19:52 +00:00
From peer.ID
Type MessageType
}