Skip to content

Commit e7cf3b1

Browse files
committed
Merge rust-bitcoin#216: Remove unnecessary feature gate
4c3ff75 Remove unnecessary feature gate (Jamil Lambert, PhD) Pull request description: The feature gates on `Node::create_wallet` and `Node::rpc_url_with_wallet` are not needed. Remove them. Closes rust-bitcoin#214 ACKs for top commit: tcharding: ACK 4c3ff75 Tree-SHA512: 7f7ba639eb8517aa35586564818f0f67ee4308e68fea954e612235035464c59fd6bdfcc73d52339a1f03e611662ab7092635975106d77120e10a37860b9d97df
2 parents 4e35595 + 4c3ff75 commit e7cf3b1

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

node/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,6 @@ impl Node {
525525
/// Returns the rpc URL including the schema eg. http://127.0.0.1:44842
526526
pub fn rpc_url(&self) -> String { format!("http://{}", self.params.rpc_socket) }
527527

528-
#[cfg(any(feature = "0_19_1", not(feature = "download")))]
529528
/// Returns the rpc URL including the schema and the given `wallet_name`
530529
/// eg. http://127.0.0.1:44842/wallet/my_wallet
531530
pub fn rpc_url_with_wallet<T: AsRef<str>>(&self, wallet_name: T) -> String {
@@ -546,7 +545,6 @@ impl Node {
546545
Ok(self.process.wait()?)
547546
}
548547

549-
#[cfg(any(feature = "0_19_1", not(feature = "download")))]
550548
/// Create a new wallet in the running node, and return an RPC client connected to the just
551549
/// created wallet
552550
pub fn create_wallet<T: AsRef<str>>(&self, wallet: T) -> anyhow::Result<Client> {

0 commit comments

Comments
 (0)