Documentation
¶
Index ¶
- func DecryptData(binaryTx *[]byte) ([]byte, []byte, []byte, error)
- func HandleTCPRequest(rw net.Conn)
- func TcpListener(laddr string) error
- func Type1(rw io.ReadWriter) error
- func Type2(rw io.ReadWriter) (*network.DisTrResponse, error)
- func Type3(req *network.StopNetworkRequest, w net.Conn) error
- func Type4(r *network.ConfirmRequest) (*network.ConfirmResponse, error)
- func Type7(request *network.GetBodiesRequest, w net.Conn) error
- func Type10() (*network.MaxBlockResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptData ¶
DecryptData is decrypting data
func Type1 ¶
func Type1(rw io.ReadWriter) error
Type1 get the list of transactions which belong to the sender from 'disseminator' daemon do not load the blocks here because here could be the chain of blocks that are loaded for a long time download the transactions here, because they are small and definitely will be downloaded in 60 sec
func Type2 ¶
func Type2(rw io.ReadWriter) (*network.DisTrResponse, error)
Type2 serves requests from disseminator
func Type4 ¶
func Type4(r *network.ConfirmRequest) (*network.ConfirmResponse, error)
Type4 writes the hash of the specified block The request is sent by 'confirmations' daemon
func Type7 ¶
func Type7(request *network.GetBodiesRequest, w net.Conn) error
Type7 writes the body of the specified block blocksCollection and queue_parser_blocks daemons send the request through p.GetBlocks()
func Type10 ¶
func Type10() (*network.MaxBlockResponse, error)
Type10 sends the last block ID blocksCollection daemon sends this request
Types ¶
This section is empty.