1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
crate::ix!();
//-------------------------------------------[.cpp/bitcoin/src/test/util/wallet.h]
lazy_static!{
/*
extern const std::string ADDRESS_BCRT1_UNSPENDABLE;
*/
}
/* ------------------ RPC-like ------------------ */
/**
| Import the address to the wallet
|
*/
pub fn importaddress(
wallet: &mut Wallet,
address: &String) {
todo!();
/*
*/
}
//-------------------------------------------[.cpp/bitcoin/src/test/util/wallet.cpp]
pub const ADDRESS_BCRT1_UNSPENDABLE: &'static str = "bcrt1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq3xueyj";
/**
| Returns a new address from the wallet
|
*/
#[cfg(ENABLE_WALLET)]
pub fn getnewaddress(w: &mut Wallet) -> String {
todo!();
/*
constexpr auto output_type = OutputType::BECH32;
TxDestination dest;
bilingual_str error;
if (!w.GetNewDestination(output_type, "", dest, error)) assert(false);
return EncodeDestination(dest);
*/
}