mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-13 15:39:05 +01:00
61ec0539b2[MOVEONLY] reorder functions in addrman_impl.h and addrman.cpp (John Newbery)2095df7b7b[addrman] Add Add_() inner function, fix Add() return semantics (John Newbery)2658eb6d68[addrman] Rename Add_() to AddSingle() (John Newbery)e58598e833[addrman] Add doxygen comment to AddrMan::Add() (John Newbery) Pull request description: Previously, Add() would return true if the function created a new AddressInfo object, even if that object could not be successfully entered into the new table and was deleted. That would happen if the new table position was already taken and the existing entry could not be removed. Instead, return true if the new AddressInfo object is successfully entered into the new table. This fixes a bug in the "Added %i addresses" log, which would not always accurately log how many addresses had been added. ACKs for top commit: naumenkogs: ACK61ec0539b2mzumsande: ACK61ec0539b2shaavan: ACK61ec0539b2Tree-SHA512: 276f1e8297d4b6d411d05d06ffc7c176f6290a784da039926ab6c471a8ed8e9159ab4f56c893b1285737ae292954930f0d28012d89dfb3f2f825d7df41016feb
11 KiB
11 KiB