Skip to content

Conversation

@Empact
Copy link
Contributor

@Empact Empact commented Mar 4, 2020

Alternative to #18252, see motivation there.

This changes CNodeStats to handle ping timestamps as their original incoming usec int64_t values until the time they need to be displayed.

@practicalswift
Copy link
Contributor

Concept ACK

@DrahtBot
Copy link
Contributor

DrahtBot commented Mar 4, 2020

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Conflicts

No conflicts as of last run.

Copy link
Member

@hebasto hebasto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Concept ACK.

@fanquake
Copy link
Member

fanquake commented Mar 5, 2020

cc @vasild

Note the divisor is a floating point literal so presumably
also floating point.
Copy link
Contributor

@promag promag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 1891245, added cast to double and also braces.

@vasild
Copy link
Contributor

vasild commented Mar 5, 2020

ACK 1891245

I tested this with Clang 10 and the warning is gone.

Nit: the cast to double added in 1891245 is not necessary (I am ok with it).

@practicalswift
Copy link
Contributor

ACK 1891245 -- patch looks correct

@maflcko maflcko merged commit aaf0946 into bitcoin:master Mar 5, 2020
@maflcko
Copy link
Member

maflcko commented Mar 5, 2020

Would be nice to add (functional) tests for this, since it is uncovered right now.

@Empact Empact deleted the 2020-03-ping-time branch March 6, 2020 04:16
MarkLTZ added a commit to litecoinz-core/litecoinz that referenced this pull request Apr 7, 2020
- doc: fix git add argument bitcoin#18513
- build: Fix libevent linking for bench_bitcoin binary bitcoin#18397
- script: fix SCRIPT_ERR_SIG_PUSHONLY error string bitcoin#18412
- doc: Comment fix merkle.cpp bitcoin#18379
- log: Fix UB with bench on genesis block bitcoin#15283
- test: Fix mining to an invalid target + ensure that a new block has the correct hash internally bitcoin#18350
- Fix missing header in sync.h bitcoin#18357
- refactor: Fix implicit value conversion in formatPingTime bitcoin#18260
- Fix .gitignore policy in build_msvc directory bitcoin#18108
- build: Fix behavior when ALLOW_HOST_PACKAGES unset bitcoin#18051
- test: Fix p2p_invalid_messages failing in Python 3.8 because of warning bitcoin#17931
- qa: Fix double-negative arg test bitcoin#17893
- build: Fix configure report about qr bitcoin#17547
- log: Fix log message for -par=1 bitcoin#17325
- bench: Fix negative values and zero for -evals flag bitcoin#17267
- depends: fix boost mac cross build with clang 9+ bitcoin#17231
- doc: Fix broken bitcoin-cli examples bitcoin#17119
- doc: fix Makefile target in benchmarking.md bitcoin#17081
- contrib: fix minor typos in makeseeds.py bitcoin#17042
- test: Fix Python Docstring to include all Args. bitcoin#17030
- doc: Fix some misspellings bitcoin#17351
- doc: Doxygen-friendly script/descriptor.h comments bitcoin#16947
- doc: Fix doxygen errors bitcoin#17945
- doc: Doxygen-friendly CuckooCache comments bitcoin#16986
- doc: Add to Doxygen documentation guidelines bitcoin#17873
- depends: Consistent use of package variable bitcoin#17928
- init: Replace URL_WEBSITE with PACKAGE_URL bitcoin#18503
- doc: Add missed copyright headers bitcoin#17691
deadalnix pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request May 28, 2020
Summary:
```
This changes CNodeStats to handle ping timestamps as their original
incoming usec int64_t values until the time they need to be displayed.
```

Backport of core [[bitcoin/bitcoin#18260 | PR18260]].

This fix an implicit conversion warning from Clang.

Test Plan:
With clang as a compiler:
  ninja check
Check the warning is gone.

  ./src/qt/bitcoin-qt
Under the debug console => peer table, check the ping times look
correct.

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D6277
kwvg added a commit to kwvg/dash that referenced this pull request Nov 3, 2021
pravblockc pushed a commit to pravblockc/dash that referenced this pull request Nov 18, 2021
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Feb 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants