View definition

func ReadMessage(r Reader, pver uint32, btcnet BitcoinNet) (Message, []byte, error)

Defined in github.com/btcsuite/btcd/wire/message.go

Description

ReadMessage reads, validates, and parses the next bitcoin Message from r for the provided protocol version and bitcoin network. It returns the parsed Message and raw bytes which comprise the message. This function only differs from ReadMessageN in that it doesn’t return the number of bytes read. This function is mainly provided for backwards compatibility with the original API, but it’s also useful for callers that don’t care about byte counts.

ReadMessage is referenced in 4 repositories

github.com/ortutay/nodez github.com/shazow/btc-crawl github.com/jonasnick/btcP2P

...