framer and datastore.

This commit is contained in:
Christopher Jeffrey 2016-03-13 04:01:17 -07:00
parent f4a1ca3eaf
commit 68e40200e2
3 changed files with 6 additions and 5 deletions

View File

@ -615,7 +615,6 @@ Chain.prototype._checkInputs = function _checkInputs(block, prev, flags, callbac
if (err)
return callback(err);
// Check all transactions
for (i = 0; i < block.txs.length; i++) {
tx = block.txs[i];

View File

@ -14,8 +14,8 @@ var assert = utils.assert;
var fs = bcoin.fs;
var pad32 = utils.pad32;
var MAX_FILE_SIZE = 512 * 1024 * 1024;
var MAX_FILE_SIZE = 10 * 1024 * 1024;
var MAX_FILE_SIZE = 128 * 1024 * 1024;
// var MAX_FILE_SIZE = 10 * 1024 * 1024;
var NULL_CHUNK = new Buffer([0xff, 0xff, 0xff, 0xff]);
/**

View File

@ -630,10 +630,12 @@ Framer._block = function _block(block, useWitness) {
tx = block.txs[i];
if (tx.render) {
witnessSize += tx._witnessSize;
tx = useWitness && tx.hasWitness()
p = useWitness
? tx.render()
: tx.renderNormal();
witnessSize += tx._witnessSize;
tx = p;
p = null;
} else {
tx = useWitness && bcoin.tx.prototype.hasWitness.call(block.txs[i])
? Framer.witnessTX(block.txs[i])