Add note about change addresses to 'show-addresses'

This commit is contained in:
Ori Newman 2022-11-20 10:59:56 +02:00
parent ec51c6926a
commit 39a2c81933

View File

@ -5,6 +5,7 @@ import (
"fmt" "fmt"
"github.com/kaspanet/kaspad/cmd/kaspawallet/daemon/client" "github.com/kaspanet/kaspad/cmd/kaspawallet/daemon/client"
"github.com/kaspanet/kaspad/cmd/kaspawallet/daemon/pb" "github.com/kaspanet/kaspad/cmd/kaspawallet/daemon/pb"
"os"
) )
func showAddresses(conf *showAddressesConfig) error { func showAddresses(conf *showAddressesConfig) error {
@ -26,5 +27,8 @@ func showAddresses(conf *showAddressesConfig) error {
for _, address := range response.Address { for _, address := range response.Address {
fmt.Println(address) fmt.Println(address)
} }
fmt.Fprintf(os.Stderr, "Note: the above are only addresses that were manually created by the 'new-address' command. If you want to see a list of all addresses, including change addresses, "+
"that have a positive balance, use the command 'balance -v'")
return nil return nil
} }