deployer icon indicating copy to clipboard operation
deployer copied to clipboard

Side-chain timestamps are messed up

Open Z-a-r-a-k-i opened this issue 7 years ago • 2 comments

Describe the bug Timestamp are messed up if we try to create an ARK side-chain with core-deployer :

  • Default timestamp in genesisBlock are set to 0 which corresponds to 21/03/2017 14:00. It should be set to Timestamp(today) - Timestamp(21/03/2017 14:00), at the time deployer is runned or even better at the time first block is added to the blockchain on network first start.

  • No idea why, but timestamp of forged blocks after genesis block are computed wrongly : They start from date 01/01/2019, but time is correct.

To Reproduce Steps to reproduce the behavior:

  1. Run deployer from core-deployer packages with some legit parameters
  2. Use the generated configuration files on fresh core installation
  3. After nodes start to forge, check timestamps in blocks table from database
  4. Do the maths : 1490101200 + block timestamp, then convert to date
  5. Or run an explorer to have some nice display of the data

Screenshots capture

Server (please complete the following information):

  • OS: Ubuntu Server
  • Version 16.04

Z-a-r-a-k-i avatar Dec 04 '18 16:12 Z-a-r-a-k-i

@Z-a-r-a-k-i the deployer side isn't quite ready so there are likely issues. When it is, it will be updated in the deployer repo.

alexbarnsley avatar Dec 04 '18 18:12 alexbarnsley

Okay thank you Alex

Z-a-r-a-k-i avatar Dec 05 '18 13:12 Z-a-r-a-k-i