Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( BlockRetryInterval = time.Second * 6 BlockRetryLimit = 50 BlockConfirmNumber = int64(3) )
View Source
var (
ErrEventAttributeNumberUnMatch = errors.New("ErrEventAttributeNumberTooFew")
)
View Source
var (
ErrorTerminated = errors.New("terminated")
)
Functions ¶
func NewBlockstore ¶
func NewBlockstore(path string, relayer string) (*blockstore.Blockstore, error)
func StartBlock ¶
func StartBlock(bs *blockstore.Blockstore, blk uint64) (uint64, error)
Types ¶
type Chain ¶
type Chain struct {
// contains filtered or unexported fields
}
func (*Chain) Initialize ¶
type ConfigOption ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
func NewConnection ¶
func NewConnection(cfg *config.RawChainConfig, option *ConfigOption, log log15.Logger) (*Connection, error)
func (*Connection) BlockStoreUseAddress ¶
func (c *Connection) BlockStoreUseAddress() string
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(conn *Connection, log log15.Logger, stopChan <-chan struct{}, sysErrChan chan<- error) *Handler
func (*Handler) HandleMessage ¶
resolve msg from other chains
type Listener ¶
type Listener struct {
// contains filtered or unexported fields
}
func NewListener ¶
func NewListener(name string, symbol, caredSymbol core.RSymbol, startBlock uint64, bs blockstore.Blockstorer, conn *Connection, log log15.Logger, stopChan <-chan struct{}, sysErr chan<- error) *Listener
Click to show internal directories.
Click to hide internal directories.