Init creates a new transaction pool to gather.
()
| 56 | |
| 57 | // Init creates a new transaction pool to gather. |
| 58 | func (tp *TXPool) Init() { |
| 59 | tp.Lock() |
| 60 | defer tp.Unlock() |
| 61 | tp.txList = make(map[common.Uint256]*TXEntry) |
| 62 | } |
| 63 | |
| 64 | // AddTxList adds a valid transaction to the transaction pool. If the |
| 65 | // transaction is already in the pool, just return false. Parameter |
no outgoing calls