remove old mutable check from block.getSizes.

This commit is contained in:
Christopher Jeffrey 2016-05-18 04:41:49 -07:00
parent b04d4e3be1
commit 070af4643f
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -130,8 +130,6 @@ Block.prototype.getRaw = function getRaw() {
*/
Block.prototype.getSizes = function getSizes() {
var sizes;
if (this._size != null) {
return {
size: this._size,
@ -147,14 +145,7 @@ Block.prototype.getSizes = function getSizes() {
};
}
sizes = bcoin.protocol.framer.block.sizes(this);
if (!this.mutable) {
this._size = sizes.size;
this._witnessSize = sizes.witnessSize;
}
return sizes;
return bcoin.protocol.framer.block.sizes(this);
};
/**
@ -213,6 +204,7 @@ Block.prototype.hasWitness = function hasWitness() {
if (this.txs[i].hasWitness())
return true;
}
return false;
};