bip152: fix size calculation.
This commit is contained in:
parent
48399bb0cb
commit
e15ee2308d
@ -217,7 +217,7 @@ CompactBlock.prototype.toNormalWriter = function toNormalWriter(bw) {
|
||||
*/
|
||||
|
||||
CompactBlock.prototype.frameRaw = function frameRaw(witness) {
|
||||
var size = this.getSize();
|
||||
var size = this.getSize(witness);
|
||||
return this.writeRaw(new StaticWriter(size), witness).render();
|
||||
};
|
||||
|
||||
@ -972,7 +972,7 @@ TXResponse.prototype.writeRaw = function writeRaw(bw, witness) {
|
||||
*/
|
||||
|
||||
TXResponse.prototype.frameRaw = function frameRaw(witness) {
|
||||
var size = this.getSize();
|
||||
var size = this.getSize(witness);
|
||||
return this.writeRaw(new StaticWriter(size), witness).render();
|
||||
};
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user