compareTxHeight compares a verifed transaction's height with the next block height from consensus. If the height is less than the next block height, re-verify it.
(txEntry *TXEntry, height uint32)
| 113 | // block height from consensus. If the height is less than the next block |
| 114 | // height, re-verify it. |
| 115 | func (tp *TXPool) compareTxHeight(txEntry *TXEntry, height uint32) bool { |
| 116 | for _, v := range txEntry.Attrs { |
| 117 | if v.Type == vt.Stateful && |
| 118 | v.Height < height { |
| 119 | return false |
| 120 | } |
| 121 | } |
| 122 | return true |
| 123 | } |
| 124 | |
| 125 | // GetTxPool gets the transaction lists from the pool for the consensus, |
| 126 | // if the byCount is marked, return the configured number at most; if the |
no outgoing calls
no test coverage detected