Skip to content

Side-chain timestamps are messed up #38

Open
@Z-a-r-a-k-i

Description

@Z-a-r-a-k-i

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugThe issue relates to broken or incorrect behaviour.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions