mirror of
https://github.com/Xahau/Validation-Ledger-Tx-Store-to-xPOP.git
synced 2025-11-20 11:45:51 +00:00
06c8099df4725ef019af9e30d24ddc82a351149c
Validation Ledger & Transaction Store
To generate xPOPs
Watcher that connects to multiple nodes & listens for validation messages, closed ledgers & transactions, and stores all of it in an organised file system data structure for xPOP generation.
Based on the work by @RichardAH: https://github.com/RichardAH/xpop-generator
Output
Folder
This tool creates a folder structore in the ./store directory, where it creates sub-directories like this:
store / {networkid} / {ledgerno(0, -6)} / {ledgerno(-6, -3)} / {ledgerno(-3)} /
So e.g. for NetworkId 21338, ledger index 82906790, the path would be:
store/0/82/906/790
This way entire chunks of stored ledger scan be easily fetched or pruned by removing a directory recursively.
Folder contents
Every folder will contain the following files:
ledger_binary_transactions.jsonwith the binary info for aledgercommand, including transactions. The transactions contain themeta,tx_bloband a computedtx_idledger_info.jsonwith the regularledgercommand outputvl.jsonwith the UNL validator list (signature checked)validation_{signing pubkey}.json, e.g.validation_n9McDrz9tPujrQK3vMXJXzuEJv1B8UG3opfZEsFA8t6QxdZh1H6m.json
--- Todo
- (TODO) Transactions
Languages
JavaScript
90.6%
HTML
6.3%
Shell
2.5%
Dockerfile
0.6%