Documentation ¶
Index ¶
Constants ¶
View Source
const TxMapping = `` /* 1014-byte string literal not displayed */
更改ref_block_num 和block_num为类型为long
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ESClient ¶
func NewESClient ¶
func NewESClient() *ESClient
func (*ESClient) DeleteUnconfirmTx ¶
func (*ESClient) UpdateTxInfo ¶
func (es *ESClient) UpdateTxInfo(transferData *model.TransferData, status int8) bool
type EosStore ¶
type EosStore struct {
// contains filtered or unexported fields
}
func NewEosStore ¶
func (*EosStore) GetIrTxChan ¶
func (es *EosStore) GetIrTxChan() <-chan *model.TransferData
func (*EosStore) ScanIrreversibleOfUnconfirmTx ¶
func (es *EosStore) ScanIrreversibleOfUnconfirmTx()
从ElasticSearch中读出unconfirmTx, 判断所在块高度是否已经不可逆, 如果不可逆, 则删除改交易 目前EOS确认块(irreversible)大概是360个块(后面可能是两个块1s),也可以把当前块前推360个块来做确认。
Click to show internal directories.
Click to hide internal directories.