-
Notifications
You must be signed in to change notification settings - Fork 265
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: cli wallet improvements (#10425)
`cli-wallet` now supports an integrated PXE, so it can connect to a real-er network directly. A new command was also added to register a recipient so the new note discovery and syncing process is supported. Also found a bug in the synchronizer that prevented PXE from recovering when starting from a pre-seeded db (it always set its own header to the one of the genesis block, regardless of stored state)
- Loading branch information
Showing
20 changed files
with
277 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { type AztecNode } from '@aztec/circuit-types'; | ||
import { type DebugLogger } from '@aztec/foundation/log'; | ||
import { retryUntil } from '@aztec/foundation/retry'; | ||
|
||
export const waitForNode = async (node: AztecNode, logger?: DebugLogger) => { | ||
await retryUntil(async () => { | ||
try { | ||
logger?.verbose('Attempting to contact Aztec node...'); | ||
await node.getNodeInfo(); | ||
logger?.verbose('Contacted Aztec node'); | ||
return true; | ||
} catch (error) { | ||
logger?.verbose('Failed to contact Aztec Node'); | ||
} | ||
return undefined; | ||
}, 'RPC Get Node Info'); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.