Documentation ¶
Index ¶
- func DecryptData(binaryTx *[]byte) ([]byte, []byte, []byte, error)
- func HandleTCPRequest(rw io.ReadWriter)
- func ReadRequest(request interface{}, r io.Reader) error
- func SendRequest(request interface{}, w io.Writer) error
- func TcpListener(laddr string) error
- func Type1(r *DisRequest, rw io.ReadWriter) error
- type ConfirmRequest
- type ConfirmResponse
- type DisHashResponse
- type DisRequest
- type DisTrResponse
- type GetBodyRequest
- type GetBodyResponse
- type MaxBlockRequest
- type MaxBlockResponse
- type TransactionType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptData ¶
DecryptData is decrypting data
func HandleTCPRequest ¶
func HandleTCPRequest(rw io.ReadWriter)
HandleTCPRequest proceed TCP requests
func ReadRequest ¶
ReadRequest is reading request
func SendRequest ¶
SendRequest in sending request
func Type1 ¶
func Type1(r *DisRequest, 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
Types ¶
type ConfirmRequest ¶
type ConfirmRequest struct {
BlockID uint32
}
ConfirmRequest contains request data
type ConfirmResponse ¶
ConfirmResponse contains response data
func Type4 ¶
func Type4(r *ConfirmRequest) (*ConfirmResponse, error)
Type4 writes the hash of the specified block The request is sent by 'confirmations' daemon
type DisHashResponse ¶
type DisHashResponse struct {
Data []byte
}
DisHashResponse contains response data
type DisTrResponse ¶
type DisTrResponse struct{}
DisTrResponse contains response data
func Type2 ¶
func Type2(r *DisRequest) (*DisTrResponse, error)
Type2 serves requests from disseminator
type GetBodyResponse ¶
type GetBodyResponse struct {
Data []byte
}
GetBodyResponse is Data []bytes
func Type7 ¶
func Type7(request *GetBodyRequest) (*GetBodyResponse, error)
Type7 writes the body of the specified block blocksCollection and queue_parser_blocks daemons send the request through p.GetBlocks()
type MaxBlockResponse ¶
type MaxBlockResponse struct {
BlockID uint32
}
MaxBlockResponse is max block response
func Type10 ¶
func Type10() (*MaxBlockResponse, error)
Type10 sends the last block ID blocksCollection daemon sends this request
type TransactionType ¶
type TransactionType struct {
Type uint16
}
TransactionType is type of transaction