Skip to content

A tool to verify a legacy node ledger state and generate gs/genesis snapshots.

Notifications You must be signed in to change notification settings

luca-moser/pupa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pupa

This tool:

  1. queries legacy Hornet nodes for their ledger state
  2. computes a Blake2b-256 hash of the sorted [addr,balance] tuples
  3. generates a global snapshot file in CSV format to consume for legacy nodes
  4. generates a genesis snapshot for Chrysalis Phase 2 nodes containing already burned/migrated funds

Migrated funds are allocated in the genesis snapshot under UTXO IDs with an empty transaction hash and up to index 126. When the output index goes over 126 it is wrapped to zero and the transaction ID's last 2 bytes (holds a little endian encoded uint16) is incremented on each wrap around.

Usage

Run the tool with --help to get a list of configurable CLI params.

About

A tool to verify a legacy node ledger state and generate gs/genesis snapshots.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages