txcount merge

pull/541/head
sidhujag 2020-05-11 21:54:14 -07:00
parent 0b8b71fcf3
commit f2240a3f5a
1 changed files with 4 additions and 0 deletions

View File

@ -535,6 +535,10 @@ func (w *Worker) GetXpubAddress(xpub string, page int, txsOnPage int, option Acc
ad := &da[i]
for _, txid := range ad.txids {
added, _ := txcMap[txid.txid]
// count txs regardless of filter but only once
if !foundTx {
txCount++
}
// add tx only once
if !added {
add := txidFilter == nil || txidFilter(&txid, ad)