neo-go/pkg/consensus/recovery_request.go
2019-11-13 17:27:25 +03:00

18 lines
453 B
Go

package consensus
import "github.com/CityOfZion/neo-go/pkg/io"
// recoveryRequest represents dBFT RecoveryRequest message.
type recoveryRequest struct {
Timestamp uint32
}
// DecodeBinary implements io.Serializable interface.
func (m *recoveryRequest) DecodeBinary(r *io.BinReader) {
r.ReadLE(&m.Timestamp)
}
// EncodeBinary implements io.Serializable interface.
func (m *recoveryRequest) EncodeBinary(w *io.BinWriter) {
w.WriteLE(m.Timestamp)
}