Add weight and ability to get strippedsize
This commit is contained in:
parent
29e319525f
commit
48bf08c0d3
5 changed files with 28 additions and 6 deletions
types
3
types/block.d.ts
vendored
3
types/block.d.ts
vendored
|
@ -15,7 +15,8 @@ export declare class Block {
|
|||
getWitnessCommit(): Buffer | null;
|
||||
hasWitnessCommit(): boolean;
|
||||
hasWitness(): boolean;
|
||||
byteLength(headersOnly?: boolean): number;
|
||||
weight(): number;
|
||||
byteLength(headersOnly?: boolean, allowWitness?: boolean): number;
|
||||
getHash(): Buffer;
|
||||
getId(): string;
|
||||
getUTCDate(): Date;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue