vegaprotocol / vegatools

A go command line utility providing a bunch of tools to use with a Vega network
MIT License
3 stars 4 forks source link

Create a tool to validate the PoW / Gas configs #270

Closed gordsport closed 1 year ago

gordsport commented 1 year ago

It has been noticed that with some configurations its possible to create enough PoW pre-computes to fill blocks.

We currently have (in testnet) the following network parameters set for the PoW

"key": "spam.pow.difficulty",
"value": "15"

"key": "spam.pow.increaseDifficulty",
"value": "0"

"key": "spam.pow.numberOfTxPerBlock"
"value": "100"

"key": "spam.pow.numberOfPastBlocks"
"value": "100"

"key": "network.transactions.maxgasperblock",
"value": "3000000"

We need to create a vegatool that is able to get data on how many precomputed PoWs, and for how long the can be used for, for given values for the above network parameters.

The outcome desired is that we can review this data with the core and research teams and define a good base config for both testnet and mainnet.