Branch: refs/heads/master
Home: https://github.com/conformal/btcwallet
Commit: e4c0fc81dd4b34392a198d42e7c8c7a787565113
https://github.com/conformal/btcwallet/commit/e4c0fc81dd4b34392a198d42e7c8c7a787565113
Author: Josh Rickmar <[email protected]>
Date: 2014-06-12 (Thu, 12 Jun 2014)
Changed paths:
M account.go
M acctmgr.go
M txstore/json.go
Log Message:
-----------
Return non-nil RPC results for 0 length slices.
If a JSON array result was successfully calculated, but the
slice/array is empty, the result must be marshaled as '[]' rather than
the JSON null value. To do this in go, the RPC handlers should never
return nil slices for non-error returns, but return a non-nil slice
header with 0 length.
For example, an empty listtransactions result should be returned as
[]btcjson.ListTransactionsResult{}, rather than nil.