View definition


Defined in


StoreBlock stores the provided block into the database. There are no checks to ensure the block connects to a previous block, contains double spends, or any additional functionality such as transaction indexing. It simply stores the block in the database.

Returns the following errors as required by the interface contract:

- ErrBlockExists when the block hash already exists
- ErrTxNotWritable if attempted against a read-only transaction
- ErrTxClosed if the transaction has already been closed

This function is part of the database.Tx interface implementation.

StoreBlock is referenced in 0 repositories