MCPcopy Create free account
hub / github.com/ElementsProject/elements / taprootEnabled

Method taprootEnabled

src/wallet/interfaces.cpp:477–481  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

475 bool hasExternalSigner() override { return m_wallet->IsWalletFlagSet(WALLET_FLAG_EXTERNAL_SIGNER); }
476 bool privateKeysDisabled() override { return m_wallet->IsWalletFlagSet(WALLET_FLAG_DISABLE_PRIVATE_KEYS); }
477 bool taprootEnabled() override {
478 if (m_wallet->IsLegacy()) return false;
479 auto spk_man = m_wallet->GetScriptPubKeyMan(OutputType::BECH32M, /*internal=*/false);
480 return spk_man != nullptr;
481 }
482 OutputType getDefaultAddressType() override { return m_wallet->m_default_address_type; }
483 CAmount getDefaultMaxTxFee() override { return m_wallet->m_default_max_tx_fee; }
484 void remove() override

Callers 1

setModelMethod · 0.80

Calls 2

IsLegacyMethod · 0.80
GetScriptPubKeyManMethod · 0.80

Tested by

no test coverage detected