Add weight and ability to get strippedsize

This commit is contained in:
junderw 2019-11-29 15:30:23 +09:00
commit 48bf08c0d3
No known key found for this signature in database
GPG key ID: B256185D3A971908
5 changed files with 28 additions and 6 deletions

3
types/block.d.ts vendored
View file

@ -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;