Documentation ¶
Index ¶
Constants ¶
View Source
const (
WSURLformat = "ws://%s:%s/peers/upgrade?senderPort=%s"
)
Variables ¶
View Source
var ( Peers = &peers{ v: make(map[string]*peer), } )
Functions ¶
func BroadcastMinedBlock ¶
func BroadcastMinedBlock(minedBlock *blockchain.Block)
func BroadcastNewTx ¶
func BroadcastNewTx(newTx *blockchain.Tx)
func GetPeersList ¶
func GetPeersList() []string
func PingForever ¶
func PingForever()
func UpgradePeer ¶
func UpgradePeer(rw http.ResponseWriter, r *http.Request)
Types ¶
type Msg ¶
func (*Msg) KindToString ¶
Click to show internal directories.
Click to hide internal directories.