Alpha: set block size constants

This commit is contained in:
Benjamin Canou 2018-06-29 21:45:41 +02:00
parent 8ff740c8ee
commit 42a8fbaf77

View File

@ -48,10 +48,13 @@ let max_operation_data_length =
Alpha_context.Constants.max_operation_data_length
let validation_passes =
Updater.[ { max_size = 32 * 1024 ; max_op = Some 32 } ; (* 32kB FIXME *)
{ max_size = 32 * 1024 ; max_op = None } ; (* 32kB FIXME *)
{ max_size = 32 * 1024 ; (* 32kB FIXME *)
max_op = Some Alpha_context.Constants.max_revelations_per_block } ;
let max_anonymous_operations =
Alpha_context.Constants.max_revelations_per_block +
(* allow 100 wallet activations or denunciations per block *) 100 in
Updater.[ { max_size = 32 * 1024 ; max_op = Some 32 } ; (* 32 endorsements *)
{ max_size = 64 * 1024 ; max_op = None } ; (* 64k of voting operations *)
{ max_size = max_anonymous_operations * 1024 ;
max_op = Some max_anonymous_operations } ;
{ max_size = 512 * 1024 ; max_op = None } ] (* 512kB *)
let rpc_services =