mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-18 13:17:55 +02:00
Merge 89b2194124 into merged_master (Bitcoin PR bitcoin/bitcoin#25814)
This commit is contained in:
commit
3997d119e7
1 changed files with 2 additions and 3 deletions
|
|
@ -208,12 +208,11 @@ static std::vector<CAddress> ConvertSeeds(const std::vector<uint8_t> &vSeedsIn)
|
|||
// one by discovery.
|
||||
CService GetLocalAddress(const CNetAddr& addrPeer)
|
||||
{
|
||||
CService ret{CNetAddr(), GetListenPort()};
|
||||
CService addr;
|
||||
if (GetLocal(addr, &addrPeer)) {
|
||||
ret = CService{addr};
|
||||
return addr;
|
||||
}
|
||||
return ret;
|
||||
return CService{CNetAddr(), GetListenPort()};
|
||||
}
|
||||
|
||||
static int GetnScore(const CService& addr)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue