Replace time(0) calls

XMLWordPrintableJSON

    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Although highly unlikely, time(0) can return a value of -1. This value is occasionally set during static initialization. For example, see:

      dbwebserver.cpp:L46    time_t started = time(0); 
      

      Tangentially, this specific variable is used by the replication logic in health.cpp and consensus.cpp, so dbwebserver.cpp probably isn't the best place to initialize.

              Assignee:
              DO NOT USE - Backlog - Platform Team
              Reporter:
              Ben Becker (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: