GithubHelp home page GithubHelp logo

who-biz / chips-snapshot Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 3 KB

Procedure for snapshotting and distributing coins from CHIPS legacy blockchain, to new Verus PBaaS blockchain.

License: BSD 3-Clause "New" or "Revised" License

chips-snapshot's Introduction

CHIPS Snapshot procedure

Step 1: Sync a CHIPS daemon to chain tip

Either clone and compile source code from https://github.com/chips-blockchain/chips, or use pre-compiled binaries on releases page.

Once synced to chain tip, shut your daemon off so that lock is not present on database.

Step 2: Take snapshot using python tool

Clone repository located here: https://github.com/who-biz/chipsposbal2csv

Download prerequisite packages from apt and pip:

sudo apt-get install python2.7-dev libleveldb-dev

pip install plyvel==1.2.0
pip install base58
pip install pysqlite3

Then, take snapshot. This will take a while.

cd chipsposbal2csv
python btcposbal2csv.py ~/.chips/chainstate ~/chips_addresses_w_bal.csv

Once this is complete, you should have a file in home directory titled chips_addresses_w_bal.csv.

Step 3: Run script to distribute coins according to snapshot

You must have the required balance in your wallet to distribute to snapshot fully. In the event that balance is insufficient, script will print a message indicating so. It will also export JSON-formatted entries that have been excluded from snapshot to a file.

Clone repository located here: https://github.com/who-biz/blockchain_scripts

Run script:

cd ~/blockchain_scripts
./vrsc_sendmany_from_csv.sh ~/chips_addresses_w_bal.csv

chips-snapshot's People

Contributors

who-biz avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.