Skip to content

XELIS Simulator for Kalman Filter implementation used as a difficulty adjustment algorithm and dynamic base fee visualization

Notifications You must be signed in to change notification settings

xelis-project/xelis-simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XELIS Simulator

This repository contains various program for simulating part of XELIS chain.

Before using any scripts available, make sure to have Python and Poetry installed. Then, you need to have the dependencies installed: poetry install

Difficulty

In the difficulty folder, there is two distincts program parts:

  • one is to generate random data (generate.py)
  • the other is to visualize it using Matplotlib (graph.py).

This program allows to visualize the reaction of the Kalman Filter used as a difficulty adjustment algorithm by estimating the unknown network hashrate.

Usage

Then, you can generate data to visualize it. poetry run generate.py

Now that you have a CSV file created (named attempts.csv) you can run the following command: poetry run graph.py

Dynamic Fee

In the dynamic_fee folder, we have two distinct parts again:

  • base_fee.py which allows to visualize how the dynamic base fee (fee per kB) will react against the block usage %.
  • block_size_ema.py to visualize the reaction from spikes of big blocks against the EMA.

Dynamic base fee

Block size EMA

Circulating Supply

Estimation of the circulating supply of XELIS over time can be found in the circulating_supply folder.

See graph.py for the code to generate the graph.

Circulating Supply

About

XELIS Simulator for Kalman Filter implementation used as a difficulty adjustment algorithm and dynamic base fee visualization

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages