mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-18 13:17:55 +02:00
net: Providing an interface for mapLocalHost
Contributes to #564 by providing an interface for mapLocalHost through net -> node interface -> clientModel. Later this value can be read by GUI to show the local addresses.
This commit is contained in:
parent
058af75874
commit
a5d7aff867
6 changed files with 29 additions and 0 deletions
|
|
@ -123,6 +123,13 @@ int64_t ClientModel::getHeaderTipTime() const
|
|||
return cachedBestHeaderTime;
|
||||
}
|
||||
|
||||
|
||||
std::map<CNetAddr, LocalServiceInfo> ClientModel::getNetLocalAddresses() const
|
||||
{
|
||||
return m_node.getNetLocalAddresses();
|
||||
}
|
||||
|
||||
|
||||
int ClientModel::getNumBlocks() const
|
||||
{
|
||||
if (m_cached_num_blocks == -1) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue