mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-03-30 15:08:33 +00:00

* [NOD-1128] Change message command to uint32 * [NOD-1128] Don't use iota * [NOD-1128] Remove redundant line
47 lines
1.5 KiB
Go
47 lines
1.5 KiB
Go
// Copyright (c) 2014-2015 The btcsuite developers
|
|
// Use of this source code is governed by an ISC
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package wire
|
|
|
|
import (
|
|
"io"
|
|
)
|
|
|
|
// MsgFilterClear implements the Message interface and represents a kaspa
|
|
// filterclear message which is used to reset a Bloom filter.
|
|
//
|
|
// This message was not added until protocol version BIP0037Version and has
|
|
// no payload.
|
|
type MsgFilterClear struct{}
|
|
|
|
// KaspaDecode decodes r using the kaspa protocol encoding into the receiver.
|
|
// This is part of the Message interface implementation.
|
|
func (msg *MsgFilterClear) KaspaDecode(r io.Reader, pver uint32) error {
|
|
return nil
|
|
}
|
|
|
|
// KaspaEncode encodes the receiver to w using the kaspa protocol encoding.
|
|
// This is part of the Message interface implementation.
|
|
func (msg *MsgFilterClear) KaspaEncode(w io.Writer, pver uint32) error {
|
|
return nil
|
|
}
|
|
|
|
// Command returns the protocol command string for the message. This is part
|
|
// of the Message interface implementation.
|
|
func (msg *MsgFilterClear) Command() MessageCommand {
|
|
return CmdFilterClear
|
|
}
|
|
|
|
// MaxPayloadLength returns the maximum length the payload can be for the
|
|
// receiver. This is part of the Message interface implementation.
|
|
func (msg *MsgFilterClear) MaxPayloadLength(pver uint32) uint32 {
|
|
return 0
|
|
}
|
|
|
|
// NewMsgFilterClear returns a new kaspa filterclear message that conforms to the Message
|
|
// interface. See MsgFilterClear for details.
|
|
func NewMsgFilterClear() *MsgFilterClear {
|
|
return &MsgFilterClear{}
|
|
}
|