mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
Merge dd981b5e84 into merged_master (Bitcoin PR bitcoin/bitcoin#22618)
This commit is contained in:
commit
815f4d545d
4 changed files with 9 additions and 3 deletions
|
|
@ -57,6 +57,10 @@ Notable changes
|
|||
P2P and network changes
|
||||
-----------------------
|
||||
|
||||
- A bitcoind node will no longer rumour addresses to inbound peers by default.
|
||||
They will become eligible for address gossip after sending an ADDR, ADDRV2,
|
||||
or GETADDR message. (#21528)
|
||||
|
||||
Updated RPCs
|
||||
------------
|
||||
|
||||
|
|
|
|||
|
|
@ -3813,7 +3813,9 @@ void PeerManagerImpl::ProcessMessage(CNode& pfrom, const std::string& msg_type,
|
|||
return;
|
||||
}
|
||||
|
||||
SetupAddressRelay(pfrom, *peer);
|
||||
// Since this must be an inbound connection, SetupAddressRelay will
|
||||
// never fail.
|
||||
Assume(SetupAddressRelay(pfrom, *peer));
|
||||
|
||||
// Only send one GetAddr response per connection to reduce resource waste
|
||||
// and discourage addr stamping of INV announcements.
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ BOOST_FIXTURE_TEST_CASE(SubtractFee, TestChain100Setup)
|
|||
// Send full input minus more than the fee amount to recipient, check
|
||||
// leftover input amount is paid to recipient not the miner (to_reduce ==
|
||||
// -123). This overpays the recipient instead of overpaying the miner more
|
||||
// than double the neccesary fee.
|
||||
// than double the necessary fee.
|
||||
BOOST_CHECK_EQUAL(fee, check_tx(fee + 123));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -179,7 +179,7 @@ class AddrTest(BitcoinTestFramework):
|
|||
# of the outbound peer which is often sent before the GETADDR response.
|
||||
assert_equal(inbound_peer.num_ipv4_received, 0)
|
||||
|
||||
# Send an empty ADDR message to intialize address relay on this connection.
|
||||
# Send an empty ADDR message to initialize address relay on this connection.
|
||||
inbound_peer.send_and_ping(msg_addr())
|
||||
|
||||
self.log.info('Check that subsequent addr messages sent from an outbound peer are relayed')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue