Changeset View
Changeset View
Standalone View
Standalone View
src/qt/walletmodel.cpp
Show First 20 Lines • Show All 519 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
QString WalletModel::getDisplayName() const { | QString WalletModel::getDisplayName() const { | ||||
const QString name = getWalletName(); | const QString name = getWalletName(); | ||||
return name.isEmpty() ? "[" + tr("default wallet") + "]" : name; | return name.isEmpty() ? "[" + tr("default wallet") + "]" : name; | ||||
} | } | ||||
bool WalletModel::isMultiwallet() { | bool WalletModel::isMultiwallet() { | ||||
return m_node.getWallets().size() > 1; | return m_node.walletClient().getWallets().size() > 1; | ||||
} | } | ||||
const CChainParams &WalletModel::getChainParams() const { | const CChainParams &WalletModel::getChainParams() const { | ||||
return Params(); | return Params(); | ||||
} | } | ||||
BlockHash WalletModel::getLastBlockProcessed() const { | BlockHash WalletModel::getLastBlockProcessed() const { | ||||
return m_client_model ? m_client_model->getBestBlockHash() : BlockHash{}; | return m_client_model ? m_client_model->getBestBlockHash() : BlockHash{}; | ||||
} | } |