Versions in this module Expand all Collapse all v0 v0.0.2 Aug 3, 2018 Changes in this version + func Start(n *Service, cfg *nodetypes.Config) error + type DiscoveryNotifee struct + func (n *DiscoveryNotifee) HandlePeerFound(pi peerstore.PeerInfo) + type Interface interface + type Keys struct + Priv *ecdsa.PrivateKey + Pub *ecdsa.PublicKey + type Props struct + BlockDifficulty int + CancelMinersChannel chan struct{} + Context context.Context + Host host.Host + Keys Keys + P2P p2p.Interface + Protobyff protobuff.Interface + Pubsub *floodsub.PubSub + Store nodestore.Interface + SubscriberChannel chan interface{} + type Service struct + func New(props *Props) (*Service, error) + func (s *Service) BroadcastMinedBlock(minedBlock *miner.MinedBlock) error + func (s *Service) BroadcastTransaction(tx *statechain.Transaction) (*nodetypes.SendTxResponse, error)