go-ethereum/swarm/network/pss.go
nolash 9cad74910f swarm/network, p2p/testing: WIP first test of pss poc
Fails as hive insists on starting discovery even though we don't want it
2017-05-06 14:23:38 +01:00

26 lines
419 B
Go

package network
import (
"fmt"
"github.com/ethereum/go-ethereum/logger"
"github.com/ethereum/go-ethereum/logger/glog"
)
type pssPeer struct {
Peer
}
type PssMsg struct {
Recipient pssPeer
Payload []byte
}
func (pm *PssMsg) String() string {
return fmt.Sprintf("PssMsg: Recipient: %v", pm.Recipient)
}
func PssMsgHandler(msg interface{}) error {
glog.V(logger.Detail).Infof("Pss Handled!")
return nil
}