(byCount bool, height uint32)
| 38 | } |
| 39 | |
| 40 | func (self *TxPoolActor) GetTxnPool(byCount bool, height uint32) []*txpool.TXEntry { |
| 41 | poolmsg := &txpool.GetTxnPoolReq{ByCount: byCount, Height: height} |
| 42 | future := self.Pool.RequestFuture(poolmsg, time.Second*10) |
| 43 | entry, err := future.Result() |
| 44 | if err != nil { |
| 45 | return nil |
| 46 | } |
| 47 | |
| 48 | txs := entry.(*txpool.GetTxnPoolRsp).TxnPool |
| 49 | return txs |
| 50 | } |
| 51 | |
| 52 | func (self *TxPoolActor) VerifyBlock(txs []*types.Transaction, height uint32) error { |
| 53 | poolmsg := &txpool.VerifyBlockReq{Txs: txs, Height: height} |
no outgoing calls
no test coverage detected