// AddTransaction adds a transaction to the ledger and adds it's id to a probabilistic
// data structure used to sync transactions.
AddTransaction adds a transaction to the ledger and adds it's id to a probabilistic
data structure used to sync transactions.
// AddTransaction adds a transaction to the ledger and adds it ' s id to a probabilistic // data structure used to sync transactions .
func (l *Ledger) AddTransaction(txs ...Transaction) {
	l.transactions.BatchAdd(txs)
	l.transactionFilterLock.Lock()
	for _, tx := range txs {
		l.transactionFilter.Insert(tx.ID)
		l.gossiper.Push(tx)
	}
	l.transactionFilterLock.Unlock()
}
func ( l * Ledger ) AddTransaction ( txs ... Transaction ) { l . transactions . BatchAdd ( txs ) l . transactionFilterLock . Lock ( ) for _ , tx := range txs { l . transactionFilter . Insert ( tx . ID ) l . gossiper . Push ( tx ) } l . transactionFilterLock . Unlock ( ) }
AddTransaction adds a transaction to the ledger and adds it's id to a probabilistic
data structure used to sync transactions.
AddTransaction adds a transaction to the ledger and adds it ' s id to a probabilistic data structure used to sync transactions .