bip152: fix size calculation.

This commit is contained in:
Christopher Jeffrey 2017-01-16 14:09:46 -08:00
parent 48399bb0cb
commit e15ee2308d
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

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