mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-25 03:56:34 +00:00
18 lines
453 B
Go
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)
|
|
}
|