Skip to content

wallet subcommands are not network-aware (always operate on the default network's keystore) #148

Description

@Reiers

lantern wallet new|list|balance|export|import|default all use openWalletDefault()build.DefaultNetwork — there is no --network flag. On a calibration or devnet node the wallet commands silently read/write the MAINNET keystore.

wallet send gained --network in PR #144; the rest should follow the same pattern (and walletBalance/walletList display should respect applyAddressNetwork, added in PR #145, so calibration addresses print t-prefixed).

Also worth doing while in there: wallet balance builds an offline ChainAPI against the mainnet gateway hardcoded (fetchTrustedHead(ctx, defaultGateway, build.Mainnet)) — should route through the running daemon like the new wallet send does.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinguxOperator or end-user experience

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions