// Iterate iterates through all transactions that the node has archived.
Iterate iterates through all transactions that the node has archived.
// Iterate iterates through all transactions that the node has archived .
func (t *Transactions) Iterate(fn func(*Transaction) bool) {
	t.RLock()
	defer t.RUnlock()
	for _, tx := range t.buffer {
		if !fn(tx) {
			return
		}
	}
}
func ( t * Transactions ) Iterate ( fn func ( * Transaction ) bool ) { t . RLock ( ) defer t . RUnlock ( ) for _ , tx := range t . buffer { if ! fn ( tx ) { return } } }
Iterate iterates through all transactions that the node has archived.
Iterate iterates through all transactions that the node has archived .