Class: BlockMapRecord

wallet/records~BlockMapRecord

new BlockMapRecord(hash, height)

Wallet Block

Parameters:
Name Type Description
hash Hash
height Number
Source:

Methods

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

Instantiate wallet block from serialized data.

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

add(hash, wid) → {Boolean}

Add a hash and wid pair to the block.

Parameters:
Name Type Description
hash Hash
wid WalletID
Source:
Returns:
Type
Boolean

(private) fromRaw(hash, data)

Instantiate wallet block from serialized data.

Parameters:
Name Type Description
hash Hash
data Buffer
Source:

getSize() → {Number}

Calculate serialization size.

Source:
Returns:
Type
Number

remove(hash, wid) → {Boolean}

Remove a hash and wid pair from the block.

Parameters:
Name Type Description
hash Hash
wid WalletID
Source:
Returns:
Type
Boolean

toRaw() → {Buffer}

Serialize the wallet block as a block. Contains matching transaction hashes.

Source:
Returns:
Type
Buffer