getTxPool returns a tx list for consensus.
(byCount bool, height uint32)
| 496 | |
| 497 | // getTxPool returns a tx list for consensus. |
| 498 | func (s *TXPoolServer) getTxPool(byCount bool, height uint32) []*tc.TXEntry { |
| 499 | s.setHeight(height) |
| 500 | |
| 501 | avlTxList, oldTxList := s.txPool.GetTxPool(byCount, height) |
| 502 | |
| 503 | for _, t := range oldTxList { |
| 504 | s.delTransaction(t) |
| 505 | s.reVerifyStateful(t, tc.NilSender) |
| 506 | } |
| 507 | |
| 508 | return avlTxList |
| 509 | } |
| 510 | |
| 511 | // getTxCount returns current tx count, including pending and verified |
| 512 | func (s *TXPoolServer) getTxCount() []uint32 { |
no test coverage detected