Documentation ¶
Index ¶
Constants ¶
View Source
const ( KiB = 1024 MiB = 1024 * KiB MaxTotalBatchSize = 20 * MiB MaxTotalBatchSizeForNetworkSync = 6 * MiB MaxBlocksBatchSize = 50000 MaxBlockSize = 2 * MiB )
Variables ¶
This section is empty.
Functions ¶
func ApplyFromFile ¶
func ApplyFromFile(st State, blockchainPath string, nBlocks, startHeight uint64, optimize bool) error
ApplyFromFile reads blocks from blockchainPath, applying them from height startHeight and until nBlocks+1. Setting optimize to true speeds up the import, but it is only safe when importing blockchain from scratch when no rollbacks are possible at all. If the state was rolled back at least once before, `optimize` MUST BE false.
func CheckBalances ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.