mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-02 09:45:50 +00:00
22 lines
528 B
Go
22 lines
528 B
Go
|
package consensus
|
||
|
|
||
|
import (
|
||
|
"github.com/CityOfZion/neo-go/pkg/io"
|
||
|
"github.com/CityOfZion/neo-go/pkg/util"
|
||
|
)
|
||
|
|
||
|
// prepareResponse represents dBFT PrepareResponse message.
|
||
|
type prepareResponse struct {
|
||
|
PreparationHash util.Uint256
|
||
|
}
|
||
|
|
||
|
// EncodeBinary implements io.Serializable interface.
|
||
|
func (p *prepareResponse) EncodeBinary(w *io.BinWriter) {
|
||
|
w.WriteBE(p.PreparationHash[:])
|
||
|
}
|
||
|
|
||
|
// DecodeBinary implements io.Serializable interface.
|
||
|
func (p *prepareResponse) DecodeBinary(r *io.BinReader) {
|
||
|
r.ReadBE(p.PreparationHash[:])
|
||
|
}
|