Constructor
new Flo(floParams, protocolParams, marketParams)
Creates an instance of Flo.
Parameters:
Name | Type | Description |
---|---|---|
floParams |
Object | Object with the parameters related to the FLO network |
protocolParams |
Object | |
marketParams |
Object |
Methods
getBlockReward() → {number}
Get the current value of block reward
Returns:
- the current value of block reward
- Type
- number
getBlockTime() → {number}
Get current time target to generate a block
Returns:
- The current time target to generate a block
- Type
- number
getDifficulty() → {number}
Get current difficulty
Returns:
- The current difficulty
- Type
- number
setBlockReward(newValue)
set new value for block reward
Parameters:
Name | Type | Description |
---|---|---|
newValue |
number | The new value for block reward |
setBlockTime(newValue)
set new time target to generate the block
Parameters:
Name | Type | Description |
---|---|---|
newValue |
number | The new time target to generate the block |
setDifficulty(newValue)
set new difficulty
Parameters:
Name | Type | Description |
---|---|---|
newValue |
number | The new difficulty |