Class: ChainState

wallet/records~ChainState()

Chain State

Constructor

new ChainState()

Create a chain state.

Source:

Methods

(static) fromRaw(hash, data) → {ChainState}

Instantiate chain state from serialized data.

Parameters:
Name Type Description
hash Hash
data Buffer
Source:
Returns:
Type
ChainState

clone() → {ChainState}

Clone the state.

Source:
Returns:
Type
ChainState

(private) fromRaw(data)

Inject properties from serialized data.

Parameters:
Name Type Description
data Buffer
Source:

toRaw() → {Buffer}

Serialize the chain state.

Source:
Returns:
Type
Buffer