Skip to content

Commit

Permalink
requires nodeClient to connect for rescans (#15)
Browse files Browse the repository at this point in the history
rescanning requires receiving blocks from a remote node. the wallet cannot
rescan if its nodeClient is not connected
  • Loading branch information
hughy authored Aug 23, 2023
1 parent 0806a96 commit 9b71e66
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/commands/rescan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ export class RescanCommand extends IronfishCommand {
this.error('You cannot pass both --local and --no-follow')
}

const client = await connectRpcWallet(this.sdk, { forceLocal: local })
const client = await connectRpcWallet(this.sdk, {
forceLocal: local,
connectNodeClient: true,
})

CliUx.ux.action.start('Asking node to start scanning', undefined, {
stdout: true,
Expand Down

0 comments on commit 9b71e66

Please sign in to comment.