Remove private __byteLength from Transaction

This commit is contained in:
junderw 2019-12-09 10:37:55 +09:00
parent 48bf08c0d3
commit 10fcf3d9e1
No known key found for this signature in database
GPG key ID: B256185D3A971908
5 changed files with 50 additions and 60 deletions
ts_src

View file

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