Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Fix nodeos 1.8.x to > 1.7.x peering issue (allowed-connection not equal to "any") - 1.7.x #7699

Merged
merged 1 commit into from Jul 30, 2019

Conversation

heifner
Copy link
Contributor

@heifner heifner commented Jul 29, 2019

Fixes #7575

Note: My guess is this is less of an issue between eosio versions and more of an issue with different compiler tool chains. However, it is good to ensure all platforms use nanoseconds so they match up.

Change Description

Issue: #7575
The default std::chrono::duration resolution changed from nanoseconds in 1.7.x and below to microseconds in 1.8.x. When allowed-connection not equal to "any" the time skew between peers needs to be less than 1 sec. The time skew check will always fail due to the resolution mismatch.

Modifications:

added explicit cast of the current time to nanoseconds during the peering handshake intialization.

Consensus Changes

  • Consensus Changes

API Changes

  • API Changes

Documentation Additions

  • Documentation Additions

@heifner heifner merged commit fcb5c0a into release/1.7.x Jul 30, 2019
@heifner heifner deleted the peer-issue-1.7.x branch July 30, 2019 00:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants