mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
Merge #21415: refactor: remove Optional & nullopt
ebc4ab721brefactor: post Optional<> removal cleanups (fanquake)57e980d13cscripted-diff: remove Optional & nullopt (fanquake) Pull request description: Same rationale & motivation as #21404, which turned out to be quite low in the number of potential conflicts. Lets see what the bot has to say here. ACKs for top commit: practicalswift: cr ACKebc4ab721b: patch looks correct jnewbery: utACKebc4ab721blaanwj: Code review ACKebc4ab721bTree-SHA512: 550fbeef09b9d35ddefaa805d1755c18c8fd499c4b0f77ebfece8c20296a7abd1cf6c699e2261f92fe3552deeb7555ec2a2287ffe3ab9e98bb9f8612a4d43be3
This commit is contained in:
commit
a9d1b40d53
51 changed files with 184 additions and 194 deletions
|
|
@ -34,6 +34,7 @@
|
|||
#include <validation.h>
|
||||
|
||||
#include <memory>
|
||||
#include <optional>
|
||||
#include <typeinfo>
|
||||
|
||||
/** How long to cache transactions in mapRelay for normal relay */
|
||||
|
|
@ -4218,7 +4219,7 @@ bool PeerManagerImpl::SendMessages(CNode* pto)
|
|||
if (pto->m_next_local_addr_send != 0us) {
|
||||
pto->m_addr_known->reset();
|
||||
}
|
||||
if (Optional<CAddress> local_addr = GetLocalAddrForPeer(pto)) {
|
||||
if (std::optional<CAddress> local_addr = GetLocalAddrForPeer(pto)) {
|
||||
FastRandomContext insecure_rand;
|
||||
pto->PushAddress(*local_addr, insecure_rand);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue