| 18 | |
| 19 | #ifdef ENABLE_WALLET |
| 20 | std::string getnewaddress(CWallet& w) |
| 21 | { |
| 22 | constexpr auto output_type = OutputType::BECH32; |
| 23 | CTxDestination dest; |
| 24 | bilingual_str error; |
| 25 | if (!w.GetNewDestination(output_type, "", dest, error)) assert(false); |
| 26 | |
| 27 | return EncodeDestination(dest); |
| 28 | } |
| 29 | |
| 30 | #endif // ENABLE_WALLET |
no test coverage detected