Skip to content

Commit

Permalink
add unfreezing period to node info (#746)
Browse files Browse the repository at this point in the history
  • Loading branch information
boaz authored Nov 20, 2018
1 parent 34e7895 commit 820e28d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/node/info.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ type NodePolicy struct {
TransactionsLimit int `json:"transactions-limit"` // transactions limit in a ballot
GenesisBlockConfirmedTime string `json:"genesis-block-confirmed-time"` // confirmed time of genesis block; see `common.GenesisBlockConfirmedTime`
InflationRatio string `json:"inflation-ratio"` // inflation ratio; see `common.InflationRatio`
UnfreezingPeriod uint64 `json:"unfreezing-period"` // unfreezing period
BlockHeightEndOfInflation uint64 `json:"block-height-end-of-inflation"` // block height of inflation end; see `common.BlockHeightEndOfInflation`
}

Expand Down
1 change: 1 addition & 0 deletions lib/node/runner/api/node_info_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ func TestAPIGetNodeInfoHandler(t *testing.T) {
TransactionsLimit: 2000,
GenesisBlockConfirmedTime: common.GenesisBlockConfirmedTime,
InflationRatio: common.InflationRatioString,
UnfreezingPeriod: common.UnfreezingPeriod,
BlockHeightEndOfInflation: common.BlockHeightEndOfInflation,
}

Expand Down
1 change: 1 addition & 0 deletions lib/node/runner/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ func NewNodeInfo(nr *NodeRunner) node.NodeInfo {
TransactionsLimit: nr.Conf.TxsLimit,
GenesisBlockConfirmedTime: common.GenesisBlockConfirmedTime,
InflationRatio: common.InflationRatioString,
UnfreezingPeriod: common.UnfreezingPeriod,
BlockHeightEndOfInflation: common.BlockHeightEndOfInflation,
}

Expand Down

0 comments on commit 820e28d

Please sign in to comment.