mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-02-24 14:50:57 +01:00
StoredBlock: Add JavaDoc for constructor.
This commit is contained in:
parent
99b019e5b0
commit
474700ff50
1 changed files with 7 additions and 0 deletions
|
@ -47,6 +47,13 @@ public class StoredBlock {
|
|||
private final BigInteger chainWork;
|
||||
private final int height;
|
||||
|
||||
/**
|
||||
* Create a StoredBlock from a (header-only) {@link Block}, chain work value, and block height
|
||||
*
|
||||
* @param header A Block object with only a header (no transactions should be included)
|
||||
* @param chainWork Calculated chainWork for this block
|
||||
* @param height block height for this block
|
||||
*/
|
||||
public StoredBlock(Block header, BigInteger chainWork, int height) {
|
||||
this.header = header;
|
||||
this.chainWork = chainWork;
|
||||
|
|
Loading…
Add table
Reference in a new issue