[NOD-265] Return an empty array for searchRawTransactions when no txs were found (#356)

This commit is contained in:
Svarog 2019-08-06 17:54:56 +03:00 committed by stasatdaglabs
parent bfdf7a2cf2
commit 49ac97c7db

View File

@ -3203,10 +3203,7 @@ func handleSearchRawTransactions(s *Server, cmd interface{}, closeChan <-chan st
// Address has never been used if neither source yielded any results.
if len(addressTxns) == 0 {
return nil, &btcjson.RPCError{
Code: btcjson.ErrRPCNoTxInfo,
Message: "No information available about address",
}
return []btcjson.SearchRawTransactionsResult{}, nil
}
// Serialize all of the transactions to hex.