From e24bc527f3351efcdca3a27a86b4dbfadb868c3e Mon Sep 17 00:00:00 2001 From: stasatdaglabs <39559713+stasatdaglabs@users.noreply.github.com> Date: Tue, 5 Jan 2021 18:36:08 +0200 Subject: [PATCH] Update the max block size and mass constants to reasonable values (#1344) Co-authored-by: Elichai Turkel --- domain/dagconfig/consensus_defaults.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/domain/dagconfig/consensus_defaults.go b/domain/dagconfig/consensus_defaults.go index 68781e1b7..4688ed1be 100644 --- a/domain/dagconfig/consensus_defaults.go +++ b/domain/dagconfig/consensus_defaults.go @@ -25,7 +25,7 @@ const ( defaultMaxCoinbasePayloadLength = 150 // defaultMaxBlockSize is a bound on the size of a block in bytes, larger values increase the bound d // on the round trip time of a block, which affects the other parameters as described below - defaultMaxBlockSize = 1_000_000 + defaultMaxBlockSize = 50_000 // defaultMaxBlockParents is the number of blocks any block can point to. // Should be about d/defaultTargetTimePerBlock where d is a bound on the round trip time of a block. defaultMaxBlockParents = 10 @@ -38,7 +38,7 @@ const ( // (Higher values make pruning attacks easier by a constant, lower values make merging after a split or a spike // in block take longer) defaultMergeSetSizeLimit = 1000 - defaultMaxMassAcceptedByBlock = 10000000 + defaultMaxMassAcceptedByBlock = 500_000 defaultBaseSubsidy = 50 * constants.SompiPerKaspa defaultCoinbasePayloadScriptPublicKeyMaxLength = 150 // defaultGHOSTDAGK is a bound on the number of blue blocks in the anticone of a blue block. Approximates the maximal