Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for cold wallet #1497

Merged
merged 4 commits into from
Jan 25, 2024
Merged

Add support for cold wallet #1497

merged 4 commits into from
Jan 25, 2024

Conversation

OBorce
Copy link
Contributor

@OBorce OBorce commented Jan 24, 2024

  • add command line argument --cold-wallet to start the wallet without a node connection, with support of a subset of the commands

Comment on lines +57 to +59
async fn get_block(&self, _block_id: Id<Block>) -> Result<Option<Block>, Self::Error> {
Err(ColdWalletRpcError::NotAvailable)
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally this would be a compilation time error, where ColdWalletClient does NOT implement NodeInterface at all.

In the NodeController<N>, only the methods that require communication with node would require the N: NodeInterface constraint. Methods that do not need to communicate with the node leave N unconstrained.

It is probably not a good time to do it now but please file an issue.

@TheQuantumPhysicist TheQuantumPhysicist merged commit 2f21ed6 into master Jan 25, 2024
22 checks passed
@TheQuantumPhysicist TheQuantumPhysicist deleted the feature/cold-wallet branch January 25, 2024 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants