Class: Flo

Flo(floParams, protocolParams, marketParams)

Central class of the simulation. It puts together all the information needed to run a block and the engine to evaluate each round.

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
Source:

Methods

getBlockReward() → {number}

Get the current value of block reward
Source:
Returns:
- the current value of block reward
Type
number

getBlockTime() → {number}

Get current time target to generate a block
Source:
Returns:
- The current time target to generate a block
Type
number

getDifficulty() → {number}

Get current difficulty
Source:
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
Source:

setBlockTime(newValue)

set new time target to generate the block
Parameters:
Name Type Description
newValue number The new time target to generate the block
Source:

setDifficulty(newValue)

set new difficulty
Parameters:
Name Type Description
newValue number The new difficulty
Source: