Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
core: remove redundant storage of transactions and receipts #14801
This PR reduces fast sync time by about 30 minutes on my machine from 2:15 to 1:45, and also reduces the overall database size from 26.3GB to 14.9GB.
The change is that currently we're storing each transaction twice, once in the block body, once individually to allow hash lookups. In addition, we're also storing the block metadata (hash, number, index) of each such transaction with its hash. (Similarly, we store each receipt twice, once as a collection for the block, once individually). But: