Reply to getnewaddress with the encoded address.

This commit is contained in:
Josh Rickmar 2014-01-06 16:33:07 -05:00
parent 40675d1bef
commit bdf2198215

View file

@ -622,7 +622,7 @@ func GetNewAddress(frontend chan []byte, icmd btcjson.Cmd) {
switch err {
case nil:
// Reply with the new payment address string.
ReplySuccess(frontend, cmd.Id(), addr)
ReplySuccess(frontend, cmd.Id(), addr.EncodeAddress())
case wallet.ErrWalletLocked:
// The wallet is locked error may be sent if the keypool needs