Skip to content

We're using SPV peer's time to compute our network offset #6071

Closed

Description

@sipa

They seem to be more frequently off than full nodes.

Maybe we should ignore those?

Activity

  1. laanwj commented on May 15, 2015

    @laanwj
    Member

    I've never liked adapting our time to the network at all, but this might make sense. This would avoid inadvertent problems. SPV clients have a weaker requirement to have a correct date than full nodes.

  2. dgenr8 commented on Aug 19, 2015

    @dgenr8
    Contributor

    @sipa That's not intuitive to me. Where did you observe it? I would think any peer running on a mobile device has an accurate time.

    Anyhow, I agree with @laanwj, network-recommended adjustment should be used only to warn the user to check his clock.

    The original code said NTP was planned as the "3rd chronometer" but it would be a bad idea to turn bitcoind into an NTP client. Leave it to the system operator to decide how to set his clock well.

    The network will still "vote" on the correct time particularly with respect to blockTime validation -- but a remote attack vector against our clock is eliminated.

  3. dcousens commented on Aug 20, 2015

    @dcousens
    Contributor

    Is the client currently adjusting the system clock?

  4. davecgh commented on Aug 20, 2015

    @davecgh
    Contributor

    It does not adjust the system clock directly, however the time provided by the system clock is adjusted based upon the time data provided by other nodes on the network before its use within the client.

  5. TheBlueMatt commented on Aug 21, 2015

    @TheBlueMatt
    Contributor

    I'd say the solution is to only use the network-time-offset in cases where your network time is off from your peers by eg > 1 minute, or so.

  6. locked and limited conversation to collaborators on Dec 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions