Methods
(static) fromRaw(hash, data) → {BlockRecord}
Instantiate block record from serialized data.
Parameters:
| Name | Type | Description | 
|---|---|---|
| hash | Hash | |
| data | Buffer | 
- Source:
Returns:
- Type
- BlockRecord
(private) fromRaw(data)
Inject properties from serialized data.
Parameters:
| Name | Type | Description | 
|---|---|---|
| data | Buffer | 
- Source:
toRaw() → {Buffer}
Serialize the block record.
- Source:
Returns:
- Type
- Buffer