HomePhabricator

Change time variable type to std::chrono::seconds in src/net_processing.cpp

Description

Change time variable type to std::chrono::seconds in src/net_processing.cpp

Summary:
This changes some of the remaining time variable in net_processing.cpp from int64_t to std::chrono. The PR description claims to change all the remaining variables in net_processing, but more are done in follow-up PR 23832

This is a backport of core#23801

It also includes commit https://github.com/bitcoin/bitcoin/pull/21562/commits/a28bfd1d4cfa523a6abf3832dbfd6183cd546944

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, sdulfari

Reviewed By: #bitcoin_abc, sdulfari

Differential Revision: https://reviews.bitcoinabc.org/D13374

Details

Provenance
Shashwat <svangani239@gmail.com>Authored on Dec 17 2021, 11:49
PiRKCommitted on Mar 20 2023, 07:08
PiRKPushed on Mar 20 2023, 07:08
Reviewer
Restricted Project
Differential Revision
D13374: Change time variable type to std::chrono::seconds in src/net_processing.cpp
Parents
rABCf654010cb28c: p2p: Always serialize local timestamp for version msg
Branches
Unknown
Tags
Unknown