Fix same issue as before, but for getaccountaddress.

This commit is contained in:
Josh Rickmar 2014-01-06 16:39:32 -05:00
parent bdf2198215
commit 15c85b5c75

View file

@ -425,7 +425,7 @@ func GetAccountAddress(frontend chan []byte, icmd btcjson.Cmd) {
switch addr, err := a.CurrentAddress(); err {
case nil:
ReplySuccess(frontend, cmd.Id(), addr)
ReplySuccess(frontend, cmd.Id(), addr.EncodeAddress())
case wallet.ErrWalletLocked:
ReplyError(frontend, cmd.Id(), &btcjson.ErrWalletKeypoolRanOut)