Alpha: use distinct quota for anonymous_operation

This commit is contained in:
Grégoire Henry 2018-03-15 14:38:58 +01:00 committed by Benjamin Canou
parent 040ac648eb
commit a41d553162
2 changed files with 6 additions and 5 deletions

View File

@ -18,9 +18,10 @@ let max_block_length =
Alpha_context.Block_header.max_header_length
let validation_passes =
Updater.[ { max_size = 32 * 1024 ; max_op = None } ; (* 32kB FIXME *)
{ max_size = 32 * 1024 ; max_op = None } ; (* 32kB FIXME *)
{ max_size = 1024 * 1024 ; max_op = None } ] (* 1MB *)
Updater.[ { max_size = 32 * 1024 ; max_op = Some 32 } ; (* 32kB FIXME *)
{ max_size = 32 * 1024 ; max_op = None } ; (* 32kB FIXME *)
{ max_size = 32 * 1024 ; max_op = Some 32 } ; (* 32kB FIXME *)
{ max_size = 1024 * 1024 ; max_op = None } ] (* 1MB *)
let rpc_services = Services_registration.get_rpc_services ()

View File

@ -433,10 +433,10 @@ let parse (op: Operation.t) =
let acceptable_passes op =
match op.contents with
| Anonymous_operations _
| Sourced_operations (Consensus_operation _) -> [0]
| Sourced_operations (Amendment_operation _ | Dictator_operation _) -> [1]
| Sourced_operations (Manager_operations _) -> [2]
| Anonymous_operations _ -> [2]
| Sourced_operations (Manager_operations _) -> [3]
type error += Invalid_signature (* `Permanent *)
type error += Missing_signature (* `Permanent *)