From 9f479837c1fc2755bb6c752cd996ae10a8bda9ca Mon Sep 17 00:00:00 2001 From: Roy Lee Date: Thu, 24 May 2018 00:00:35 -0700 Subject: [PATCH] [lbry] blockchain: change max block size to 2,000,000 --- blockchain/fullblocktests/generate.go | 2 +- blockchain/weight.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/blockchain/fullblocktests/generate.go b/blockchain/fullblocktests/generate.go index 82d3a036..aee67810 100644 --- a/blockchain/fullblocktests/generate.go +++ b/blockchain/fullblocktests/generate.go @@ -31,7 +31,7 @@ const ( // Intentionally defined here rather than using constants from codebase // to ensure consensus changes are detected. maxBlockSigOps = 20000 - maxBlockSize = 1000000 + maxBlockSize = 2000000 minCoinbaseScriptLen = 2 maxCoinbaseScriptLen = 100 medianTimeBlocks = 11 diff --git a/blockchain/weight.go b/blockchain/weight.go index 6f6292a1..e23dd87d 100644 --- a/blockchain/weight.go +++ b/blockchain/weight.go @@ -24,7 +24,7 @@ const ( // MaxBlockBaseSize is the maximum number of bytes within a block // which can be allocated to non-witness data. - MaxBlockBaseSize = 1000000 + MaxBlockBaseSize = 2000000 // MaxBlockSigOpsCost is the maximum number of signature operations // allowed for a block. It is calculated via a weighted algorithm which