Make 100KB transaction size limit a consensus rule, rather than a standard rule.

This commit is contained in:
Sean Bowe
2016-10-08 00:00:23 -06:00
parent f2c99399b8
commit 74f15a73a1
6 changed files with 28 additions and 24 deletions

View File

@@ -164,7 +164,7 @@ double benchmark_verify_equihash()
double benchmark_large_tx()
{
// Number of inputs in the spending transaction that we will simulate
const size_t NUM_INPUTS = 11100;
const size_t NUM_INPUTS = 555;
// Create priv/pub key
CKey priv;
@@ -201,9 +201,9 @@ double benchmark_large_tx()
ss << spending_tx;
//std::cout << "SIZE OF SPENDING TX: " << ss.size() << std::endl;
auto error = MAX_BLOCK_SIZE / 20; // 5% error
assert(ss.size() < MAX_BLOCK_SIZE + error);
assert(ss.size() > MAX_BLOCK_SIZE - error);
auto error = MAX_TX_SIZE / 20; // 5% error
assert(ss.size() < MAX_TX_SIZE + error);
assert(ss.size() > MAX_TX_SIZE - error);
}
// Spending tx has all its inputs signed and does not need to be mutated anymore