Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockHandler ¶
type BlockHandler struct {
// contains filtered or unexported fields
}
BlockHandler is a container for tx related handlers
func NewBlockHandler ¶
func NewBlockHandler(host Host, pls *plasma.Plasma) *BlockHandler
type Host ¶
type Host interface { host.Host SendMsg(proto string, peerid ipeer.ID, data interface{}) error Request(proto string, peerid ipeer.ID, data interface{}) ([]byte, error) Response(s inet.Stream, data interface{}) error Decode(data []byte, out interface{}) error PeerIDs() []ipeer.ID PeerIDsWithoutTx(hash common.Hash) []ipeer.ID PeerIDsWithoutBlock(hash common.Hash) []ipeer.ID MarkTxs(peerid ipeer.ID, txs types.Transactions) MarkBlock(peerid ipeer.ID, block *types.Block) }
Click to show internal directories.
Click to hide internal directories.