Files
Zach Kelling e53011719c fix: rename TLS key files to luxtls.key/crt
- Rename staking.key -> luxtls.key in embedded configs
- Rename staking.crt -> luxtls.crt in embedded configs
- Update imports to github.com/luxfi/constants
2026-01-08 19:35:37 -08:00

36 lines
630 B
Go

package local
import "github.com/luxfi/p2p/message"
var _ message.OutboundMessage = &TestMsg{}
type TestMsg struct {
op message.Op
bytes []byte
bypassThrottling bool
}
func NewTestMsg(op message.Op, bytes []byte, bypassThrottling bool) *TestMsg {
return &TestMsg{
op: op,
bytes: bytes,
bypassThrottling: bypassThrottling,
}
}
func (m *TestMsg) BypassThrottling() bool {
return m.bypassThrottling
}
func (m *TestMsg) Op() message.Op {
return m.op
}
func (m *TestMsg) Bytes() []byte {
return m.bytes
}
func (*TestMsg) BytesSavedCompression() int {
return 0
}