mirror of
https://github.com/fluencelabs/tendermint
synced 2025-07-31 12:11:58 +00:00
be specific about what type we're encoding
to be consistent with Decode, which returns TimedWALMessage
This commit is contained in:
@@ -191,7 +191,7 @@ func NewWALEncoder(wr io.Writer) *WALEncoder {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Encode writes the custom encoding of v to the stream.
|
// Encode writes the custom encoding of v to the stream.
|
||||||
func (enc *WALEncoder) Encode(v interface{}) error {
|
func (enc *WALEncoder) Encode(v *TimedWALMessage) error {
|
||||||
data := wire.BinaryBytes(v)
|
data := wire.BinaryBytes(v)
|
||||||
|
|
||||||
crc := crc32.Checksum(data, crc32c)
|
crc := crc32.Checksum(data, crc32c)
|
||||||
|
Reference in New Issue
Block a user