public ICoinsView OutPoints(TxInList txIns) { var outPointSet = txIns.Select(x => x.PrevOut).ToHashSet(); var smartCoins = Coins.Where(x => outPointSet.Contains(x.OutPoint)); return(new CoinsView(smartCoins)); }
public ICoinsView SpentBy(TxInList txIns) => OutPoints(txIns.Select(x => x.PrevOut));