-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Make all wallet commands load wallet #1524
Conversation
Let's add a struct Wallet {
foo: (),
}
impl Wallet {
fn load(options: &Options) -> Result<Self> {
options.bitcoin_rpc_client_for_wallet_command(false)?;
Ok(Self)
}
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR reviewed in the salt mines
tests/lib.rs
Outdated
@@ -63,10 +63,19 @@ struct Create { | |||
mnemonic: Mnemonic, | |||
} | |||
|
|||
fn create_wallet(rpc_server: &test_bitcoincore_rpc::Handle) { | |||
CommandBuilder::new(format!("--chain {} wallet create", rpc_server.network())) | |||
fn create_wallet(rpc_server: &test_bitcoincore_rpc::Handle, wallet_name: Option<String>) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we always use the name ord? Is the old test actually testing anything? If not, it can be removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor nits, see comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent!
No description provided.