Class: AbstractBlockStore

(abstract) blockstore~AbstractBlockStore()

Abstract Block Store

Constructor

(abstract) new AbstractBlockStore()

Create an abstract blockstore.

Source:

Methods

(async) close() → {Promise}

This method closes resources and prepares the store to be closed.

Source:
Returns:
Type
Promise

(async) ensure() → {Promise}

This method ensures that resources are available before opening.

Source:
Returns:
Type
Promise

(async) has() → {Promise}

This will check if a block has been stored and is available.

Source:
Returns:
Type
Promise

(async) hasFilter() → {Promise}

This will check if a block filter has been stored and is available.

Source:
Returns:
Type
Promise

(async) hasMerkle() → {Promise}

This will check if merkle block data has been stored and is available.

Source:
Returns:
Type
Promise

(async) hasUndo() → {Promise}

This will check if a block undo coin data has been stored and is available.

Source:
Returns:
Type
Promise

(async) open() → {Promise}

This method opens any necessary resources and initializes the store to be ready to be queried.

Source:
Returns:
Type
Promise

(async) prune() → {Promise}

This will free resources for storing the block data.

Source:
Returns:
Type
Promise

(async) pruneFilter() → {Promise}

This will free resources for storing the serialized block filter data.

Source:
Returns:
Type
Promise

(async) pruneMerkle() → {Promise}

This will free resources for storing the merkle block data.

Source:
Returns:
Type
Promise

(async) pruneUndo() → {Promise}

This will free resources for storing the block undo coin data.

Source:
Returns:
Type
Promise

(async) read() → {Promise}

This method will retrieve block data. Smaller portions of the block can be read by using the offset and size arguments.

Source:
Returns:
Type
Promise

(async) readFilter() → {Promise}

This method will retrieve serialized block filter data.

Source:
Returns:
Type
Promise

(async) readFilterHeader() → {Promise}

This method will retrieve block filter header only.

Source:
Returns:
Type
Promise

(async) readMerkle() → {Promise}

This method reads merkle block data.

Source:
Returns:
Type
Promise

(async) readUndo() → {Promise}

This method will retrieve block undo coin data.

Source:
Returns:
Type
Promise

(async) write() → {Promise}

This method stores block data.

Source:
Returns:
Type
Promise

(async) writeFilter() → {Promise}

This method stores serialized block filter data in files.

Source:
Returns:
Type
Promise

(async) writeMerkle() → {Promise}

This method stores merkle blocks including all the relevant transactions.

Source:
Returns:
Type
Promise

(async) writeUndo() → {Promise}

This method stores block undo coin data.

Source:
Returns:
Type
Promise