new UndoCoin()
UndoCoin
Properties:
Name | Type | Description |
---|---|---|
entry |
CoinEntry | null | |
output |
Output | null | |
version |
Number | |
height |
Number | |
coinbase |
Boolean |
- Source:
Methods
(static) fromRaw(data) → {UndoCoin}
Instantiate undo coin from serialized data.
Parameters:
Name | Type | Description |
---|---|---|
data |
Buffer |
- Source:
Returns:
- Type
- UndoCoin
(static) fromReader(data) → {UndoCoin}
Instantiate undo coin from serialized data.
Parameters:
Name | Type | Description |
---|---|---|
data |
Buffer |
- Source:
Returns:
- Type
- UndoCoin
(private) fromRaw(data) → {UndoCoin}
Inject properties from serialized data.
Parameters:
Name | Type | Description |
---|---|---|
data |
Buffer |
- Source:
Returns:
- Type
- UndoCoin
(private) fromReader(br) → {UndoCoin}
Inject properties from buffer reader.
Parameters:
Name | Type | Description |
---|---|---|
br |
BufferReader |
- Source:
Returns:
- Type
- UndoCoin
getSize() → {Number}
Calculate undo coin size.
- Source:
Returns:
- Type
- Number
toOutput() → {Output}
Convert undo coin to an output.
- Source:
Returns:
- Type
- Output
toRaw() → {Buffer}
Serialize the undo coin.
- Source:
Returns:
- Type
- Buffer
toWriter(bw)
Write the undo coin to a buffer writer.
Parameters:
Name | Type | Description |
---|---|---|
bw |
BufferWriter |
- Source: