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