omgnetwork / omg-childchain-v2

pronounced /Ch-ch/
Apache License 2.0
5 stars 2 forks source link

blknum does not follow nonce * 1000 #167

Closed InoMurko closed 3 years ago

InoMurko commented 3 years ago

I noticed this constraint:

    create(
      constraint(
        :blocks,
        :block_number_nonce,
        check: "blknum = nonce * 1000"
      )
    )

This constraint is a legacy assumption. Nonce starts with 0 since there's no transactions when authority account is created (we previously had childchain activation: https://github.com/omgnetwork/plasma-contracts/commit/922814df3263c7b3b14323f6a95eef1c7e0111b1 )