Author Topic: Some thing about ntp and localtime in early version of bitshares  (Read 974 times)

0 Members and 1 Guest are viewing this topic.

Offline Ivnoidea

  • Newbie
  • *
  • Posts: 1
    • View Profile
Some thing about ntp and localtime in early version of bitshares
« on: September 16, 2015, 03:24:00 am »
sorry for my poor english.
We have a project based on earlier verison of bitshares before 2015.3。
Now we have some problem about ntp in bitshares and local time。
between ntp in bitshares quests,if localtime of the node(producing block)  is modified,such as ntp in windows ,this may cause fork.
is there any way to avoid fork caused by changing local time


Offline onceuponatime

Re: Some thing about ntp and localtime in early version of bitshares
« Reply #1 on: September 16, 2015, 04:04:28 am »
Welcome.

Tell us a little bit about your project.

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12915
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
Re: Some thing about ntp and localtime in early version of bitshares
« Reply #2 on: September 16, 2015, 11:03:51 am »
welcome,

NTP is UTC time as far as I recall. So you could set your local time to UTC too to avoid issues like that .. not sure how windows handles different timezones though
Give BitShares a try! Use the http://testnet.bitshares.eu provided by http://bitshares.eu powered by ChainSquad GmbH

Offline testz

Re: Some thing about ntp and localtime in early version of bitshares
« Reply #3 on: September 16, 2015, 11:21:25 am »
welcome,

NTP is UTC time as far as I recall. So you could set your local time to UTC too to avoid issues like that .. not sure how windows handles different timezones though

Windows handles different timezones well, to make delegates work perfectly at Windows you need to configure NTP time synchronization with external source (same for any other platforms):
https://csg.trinhall.cam.ac.uk/tips/ntp/winxp

Edit: My old post about this: https://bitsharestalk.org/index.php/topic,5767.msg77791.html#msg77791
« Last Edit: September 16, 2015, 11:29:33 am by testz »

Offline monsterer

Re: Some thing about ntp and localtime in early version of bitshares
« Reply #4 on: September 17, 2015, 12:36:26 pm »
between ntp in bitshares quests,if localtime of the node(producing block)  is modified,such as ntp in windows ,this may cause fork.
is there any way to avoid fork caused by changing local time

Yes, this is true - I have encountered this issue myself. The only way to resolve it was to get a checkpoint (provided by xeroc in my case) and then re-sync the chain.
My opinions do not represent those of metaexchange unless explicitly stated.
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads