mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-05-28 01:36:42 +00:00
[NOD-265] Return an empty array for searchRawTransactions when no txs were found (#356)
This commit is contained in:
parent
bfdf7a2cf2
commit
49ac97c7db
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user