Running more than 20 production blockchains, SKALED is Ethereum-compatible, high performance C++ Proof-of-Stake client, tools and libraries. Uses SKALE consensus as a blockchain consensus core. Includes dynamic Oracle. Implements file storage and retrieval as an EVM extension.
Describe the bug
The archive node contains 2 extra directories - historic_state and historic_root, allowing get historical data from the blockchain.
The mainnet difference between historic and non-historic states is 4 times (8TB for archive and 2TB for geth)
Preconditions:
Active Skale chain with connected archival node
The skale chain should have at least 4 million blocks and 10-12 million transactions with contract interaction (ERC20, ERC721 etc)
To Reproduce
Run archive node to connected schain
Wait for the archive node already syncing
Check the size of the databases in skaled data_dir
Expected behavior
Historic_state data-dir should be 4 times bigger rather than non-historic data as it represented on Ethereum
Actual state
Historic state directory size is 10 times more space rather non-historic blockchain data
Describe the bug The archive node contains 2 extra directories - historic_state and historic_root, allowing get historical data from the blockchain. The mainnet difference between historic and non-historic states is 4 times (8TB for archive and 2TB for geth)
Versions: skalenetwork/schain:3.16.0-stable.3-historic
Preconditions: Active Skale chain with connected archival node The skale chain should have at least 4 million blocks and 10-12 million transactions with contract interaction (ERC20, ERC721 etc)
To Reproduce
Expected behavior Historic_state data-dir should be 4 times bigger rather than non-historic data as it represented on Ethereum
Actual state Historic state directory size is 10 times more space rather non-historic blockchain data
Example data-dirs size: