Remove private __byteLength from Transaction
This commit is contained in:
parent
48bf08c0d3
commit
10fcf3d9e1
5 changed files with 50 additions and 60 deletions
ts_src
|
@ -160,8 +160,7 @@ export class Block {
|
|||
return (
|
||||
80 +
|
||||
varuint.encodingLength(this.transactions.length) +
|
||||
// @ts-ignore using the __byteLength private method on Transaction
|
||||
this.transactions.reduce((a, x) => a + x.__byteLength(allowWitness), 0)
|
||||
this.transactions.reduce((a, x) => a + x.byteLength(allowWitness), 0)
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue