Cleanup mempool usage, remove obsolete GetMempoolSpentOutput

This commit is contained in:
Martin Boehm
2018-05-01 22:48:58 +02:00
parent 880e3e8025
commit 7de8726979
8 changed files with 8 additions and 39 deletions

View File

@@ -196,12 +196,6 @@ func (s *HTTPServer) transactions(w http.ResponseWriter, r *http.Request) {
txList := transactionList{}
err = s.db.GetTransactions(address, lower, higher, func(txid string, vout uint32, isOutput bool) error {
txList.Txid = append(txList.Txid, txid)
if isOutput {
input := s.chain.GetMempoolSpentOutput(txid, vout)
if input != "" {
txList.Txid = append(txList.Txid, txid)
}
}
return nil
})
if err != nil {