Constructor
new ClaimEntry(options)
Create a claim entry.
Parameters:
Name | Type | Description |
---|---|---|
options |
Object |
- Source:
Methods
(static) fromClaim(claim, data, height) → {ClaimEntry}
Create a mempool entry from a claim.
Parameters:
Name | Type | Description |
---|---|---|
claim |
Claim | |
data |
Object | |
height |
Number | Entry height. |
- Source:
Returns:
- Type
- ClaimEntry
fromClaim(claim, data, height)
Inject properties from claim.
Parameters:
Name | Type | Description |
---|---|---|
claim |
Claim | |
data |
Object | |
height |
Number |
- Source:
fromOptions(options)
Inject properties from options object.
Parameters:
Name | Type | Description |
---|---|---|
options |
Object |
- Source:
getFee() → {AmountValue}
Get fee.
- Source:
Returns:
- Type
- AmountValue
getRate() → {Rate}
Calculate fee rate.
- Source:
Returns:
- Type
- Rate
getSize() → {Number}
Get entry serialization size.
- Source:
Returns:
- Type
- Number
memUsage() → {Number}
Calculate the memory usage of a claim.
- Source:
Returns:
Usage in bytes.
- Type
- Number
read(br) → {this}
Inject properties from serialized data.
Parameters:
Name | Type | Description |
---|---|---|
br |
bio.BufferReader |
- Source:
Returns:
- Type
- this
write(bw) → {BufioWriter}
Serialize entry to a buffer.
Parameters:
Name | Type | Description |
---|---|---|
bw |
BufioWriter |
- Source:
Returns:
- Type
- BufioWriter