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 ¶
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.
func CheckBalances ¶
Types ¶
type State ¶
type State interface {
AddBlocks(blocks [][]byte) error
WavesAddressesNumber() (uint64, error)
WavesBalance(account proto.Recipient) (uint64, error)
AssetBalance(account proto.Recipient, assetID proto.AssetID) (uint64, error)
ShouldPersistAddressTransactions() (bool, error)
PersistAddressTransactions() error
}
Click to show internal directories.
Click to hide internal directories.