gottstech / gotts

A blockchain for non-collateralized stable-coins, follow MimbleWimble protocol but with explicit amount.
https://gotts.tech
Apache License 2.0
48 stars 4 forks source link

consensus: floonet use smaller threshold for state sync #29

Closed garyyu closed 4 years ago

garyyu commented 4 years ago

For the convenience of Floonet test for state sync and cut-through, adjust the three consensus const:

  1. cut_through_horizon:
    • mainnet use 28 days (i.e. 40,320) blocks
    • floonet use 28 hours (i.e. 1,680)blocks.
  2. state_sync_threshold:
    • mainnet use 7 days (i.e. 10,080) blocks
    • floonet use 7 hours (i.e. 420) blocks.
  3. txhashset_archive_interval:
    • mainnet use 0.5 day (i.e. 720) blocks
    • floonet use 0.5 hour (i.e. 30) blocks.

Note: Must remember to change back when mainnet launching! to keep the floonet exact same as the mainnet except the Genesis block.