mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-19 13:27:35 +02:00
Merge e457513eb1 into merged_master (Bitcoin PR bitcoin/bitcoin#23631)
This commit is contained in:
commit
16ce576d1d
1 changed files with 5 additions and 1 deletions
|
|
@ -2734,7 +2734,11 @@ void PeerManagerImpl::ProcessMessage(CNode& pfrom, const std::string& msg_type,
|
|||
|
||||
int64_t nTimeOffset = nTime - GetTime();
|
||||
pfrom.nTimeOffset = nTimeOffset;
|
||||
AddTimeData(pfrom.addr, nTimeOffset);
|
||||
if (!pfrom.IsInboundConn()) {
|
||||
// Don't use timedata samples from inbound peers to make it
|
||||
// harder for others to tamper with our adjusted time.
|
||||
AddTimeData(pfrom.addr, nTimeOffset);
|
||||
}
|
||||
|
||||
// If the peer is old enough to have the old alert system, send it the final alert.
|
||||
if (greatest_common_version <= 70012) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue