https://github.com/tendermint/tendermint
Raw File
Tip revision: 4d78096843bcef3dd408147d2da67fbf99e1ff60 authored by William Banfield on 18 October 2022, 21:09:46 UTC
p2p: ressurrect the p2p envelope and use to calculate message metric
Tip revision: 4d78096
types.go
package p2p

import (
	"github.com/cosmos/gogoproto/proto"
	"github.com/tendermint/tendermint/p2p/conn"
)

type ChannelDescriptor = conn.ChannelDescriptor
type ConnectionStatus = conn.ConnectionStatus

// Envelope contains a message with sender routing info.
type Envelope struct {
	Src       Peer          // sender (empty if outbound)
	Message   proto.Message // message payload
	ChannelID byte
}
back to top