Skip to content

Find the % of AVW of many different polls on the Gridcoin network

License

Notifications You must be signed in to change notification settings

RoboticMind/avw-calc

Repository files navigation

avw-calc

Find the % of AVW of many different polls on the Gridcoin network. Works entirely through running RPC commands on your wallet.

Want to know how to run this? Look at the setup section here.

Want to know more about what AVW is? Read the what is AVW section

Screenshots of the GUI Version

Screenshot of the GUI program at startup

Screenshot of the GUI program after completing

Setup

  1. Download the program

  2. Open the Gridcoin wallet and click Setting then Edit config. Add the following lines replacing things in <> with values:

server=1
rpcallowip=127.0.0.1
rpcuser=USERNAME>
rpcpassword=<PASSWORD>
  • You will use the username and password you put as the RPC Username and RPC password for this program
  1. Restart the wallet after making those changes

  2. Now run this program (make sure to leave your wallet runnning)

How to Run From Python

  1. Download or clone this repository
  1. Install Python 3 for your system if not already installed (make sure to check the add Python to PATH option)
  2. Open a terminal
    • On windows you can do that by pressing Ctrl-r then entering cmd
    • On Linux and MacOS look for something labeled terminal
  3. Find the path that your dowload of this repository is in and type and enter cd /path/to/folder replacing the /path/to/folder with the actual path
  4. If on linux, install wxpython using the insturctions here or otherwise it will take much longer to instal
  5. Run pip install -r requirements.txt
  6. Now you can run python avw-calc-gui.py (GUI version) or python avw-calc-cli.py (command line version) to run the program

What is AVW

Active Vote Weight (AVW) is the amount of vote weight from people that are active on the network. Every poll type but opinion/casual requires a certain % of AVW to vote on the poll for the results to count

In a broad sense AVW is calculated like this:

voteweight from online coins + voteweight from magnitude - theoretical voteweight of pools (since they don't vote)

For more information see the active vote weight section of the voting wiki page

About

Find the % of AVW of many different polls on the Gridcoin network

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages