prysm-pulse/beacon-chain/p2p/deprecated.go
Preston Van Loon 0b8cbd06b6
Add flag for testing new p2p (#3243)
* refactor a bit to select p2p

* lint

* fix build

* fix build

* fix build

* fix build

* fix build
2019-08-19 17:20:56 -04:00

14 lines
448 B
Go

package p2p
import (
"github.com/gogo/protobuf/proto"
deprecatedp2p "github.com/prysmaticlabs/prysm/shared/deprecated-p2p"
"github.com/prysmaticlabs/prysm/shared/event"
)
// DeprecatedSubscriber exists for backwards compatibility.
// DEPRECATED: Do not use. This exists for backwards compatibility but may be removed.
type DeprecatedSubscriber interface {
Subscribe(msg proto.Message, channel chan deprecatedp2p.Message) event.Subscription
}