warp-contracts / sequencer

5 stars 0 forks source link

Node configuration #42

Open szynwelski opened 1 year ago

szynwelski commented 1 year ago

The purpose of the task is to go through all the configuration options and set the appropriate values.

Useful links:

szynwelski commented 1 year ago

We are introducing the following configuration changes:

Peer Exchange Reactor

There is no need to discover and connect with new peers until the network is open. Initially, the list of nodes will be static and specified in persistent_peers list. More about PEX can be read here.

Empty Blocks

We don't want to produce empty blocks (see #37). In case of no transactions, it is sufficient to generate a block occasionally (e.g., once every half a minute). Unfortunately, changing the values of the create_empty_blocks and create_empty_blocks_interval parameters is not enough to achieve this. Empty blocks will still be produced if the app_hash changes with every block. Currently, the app_hash changes each time due to modules that modify something in storage through BeginBlocker or EndBlocker (e.g., distribution or slashing). As part of task #36, we will need to consider whether we want to disable/modify these modules. On the other hand, there is a high chance that transactions will be sent to the sequencer frequently, so perhaps it is not worth focusing on this functionality.

Inflation

At the moment, the sequencer network will operate on a temporary token, and we do not anticipate any transfers between accounts. Therefore, inflation is not necessary and has been disabled.

The above changes were introduced in the PR.