basic envelope type

This commit is contained in:
William Banfield
2022-10-19 10:54:24 -04:00
parent 069f460e16
commit 6c81ecb1b5
2 changed files with 7 additions and 1 deletions

View File

@@ -724,7 +724,7 @@ type ChannelDescriptor struct {
SendQueueCapacity int
RecvBufferCapacity int
RecvMessageCapacity int
MessageType reflect.Type
MessageType proto.Message
}
func (chDesc ChannelDescriptor) FillDefaults() (filled ChannelDescriptor) {

View File

@@ -1,8 +1,14 @@
package p2p
import (
"github.com/cosmos/gogoproto/proto"
"github.com/tendermint/tendermint/p2p/conn"
)
type ChannelDescriptor = conn.ChannelDescriptor
type ConnectionStatus = conn.ConnectionStatus
type Envelope struct {
ChID byte
Message proto.Message
}