Work on granting forging rights

Move hard-coded forging tiers to blockchain config.
Tests for granting forging rights.

Added API call to list top block forgers.

Fixed typo with Reward[s]ByHeight class name.
This commit is contained in:
catbref
2019-04-19 09:55:04 +01:00
parent 93230e9704
commit d33ffee3ba
15 changed files with 364 additions and 59 deletions

View File

@@ -30,6 +30,11 @@
{ "height": 11, "reward": 10 },
{ "height": 21, "reward": 1 }
],
"forgingTiers": [
{ "minBlocks": 5, "maxSubAccounts": 5 },
{ "minBlocks": 4, "maxSubAccounts": 3 },
{ "minBlocks": 0, "maxSubAccounts": 0 }
],
"featureTriggers": {
"messageHeight": 0,
"atHeight": 0,