You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 4, 2025. It is now read-only.
xdag currently stores nearly 340 million blocks. According to the design of loading all of them into memory, it will seriously increase the operating cost of the mining pool. This will cause xdag to become more and more centralized. We need to design a snapshot method to reduce the operating cost of full nodes.
requirements:
1. Export balance data specification
At present, there is a -l parameter in the c code.
The out_balances() function can be called to output the block address and balance.
xdag currently stores nearly 340 million blocks. According to the design of loading all of them into memory, it will seriously increase the operating cost of the mining pool. This will cause xdag to become more and more centralized. We need to design a snapshot method to reduce the operating cost of full nodes.
requirements:
1. Export balance data specification
At present, there is a -l parameter in the c code.
The out_balances() function can be called to output the block address and balance.
Publickkey export will prepare for the future deletion of address block, It is recommended that the public key be in a compressed format
2. Full nodes export a snapshot of all address balances at the specified height
The balance changes in real time, you need to stop at the specified height before exporting the balance
3. Full nodes can import balance snapshots and continue to run
Imported according to the balance snapshot, does not rely on the original 340 million block storage, and does not affect the original user balance