mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-25 23:42:23 +00:00
ab2568cc51
* Faster persist timer * fixed networking issues.
15 lines
298 B
Go
15 lines
298 B
Go
package network
|
|
|
|
import (
|
|
"github.com/CityOfZion/neo-go/pkg/network/payload"
|
|
"github.com/CityOfZion/neo-go/pkg/util"
|
|
)
|
|
|
|
type Peer interface {
|
|
Endpoint() util.Endpoint
|
|
Disconnect(error)
|
|
WriteMsg(msg *Message) error
|
|
Done() chan error
|
|
Version() *payload.Version
|
|
SetVersion(*payload.Version)
|
|
}
|