Conversation
8f90c92 to
277ffbb
Compare
src/lib_context/context.ml
Outdated
| type t = context | ||
|
|
||
| module type S = Tezos_context_sigs.Context.S | ||
| module type S = Tezos_context_sigs.Context.MEM |
There was a problem hiding this comment.
Why did you rename this? This not the signature of the read-only backend :-)
There was a problem hiding this comment.
I made Tezos_context_sigs.Context.S be the signature of the full lib_context implementation (which used to be lib_context/context.mli).
I can look for a better naming than MEM for the old Tezos_context_sigs.Context.S
src/lib_context/context_impl.ml
Outdated
| {Logs.report} | ||
|
|
||
| let index_log_size = ref None | ||
| let index_log_size = Env.(v.index_log_size) |
There was a problem hiding this comment.
This commit (d51fbed) should be upstreamed separately (it's a good change on its own).
There was a problem hiding this comment.
(also for only accessing fields, I would write it as v.Env.index_log_size and so on)
There was a problem hiding this comment.
(also for only accessing fields, I would write it as v.Env.index_log_size and so on)
v is in Env, so v.Env wouldn't work.
Do you think I should rework the Env module?
There was a problem hiding this comment.
v is in Env, so v.Env wouldn't work.
Do you think I should rework the Env module?
Ha yes sorry I was confused. Is there a way to not use a global variable in Env (and thread a local paramater around instead?)
There was a problem hiding this comment.
Yes, I can get rid of the global variable and replace it with a Env.get : unit -> Env.t thunk that derives Sys.argv each time it is called.
There was a problem hiding this comment.
that's a good idea only if it is called only once :-)
There was a problem hiding this comment.
It would get called multiple times. I'm not sure how to do otherwise :(
There was a problem hiding this comment.
can you add that env value to Context.t ? if not, don't worry too much and keep a global state.
There was a problem hiding this comment.
Unfortunately the env needs to be read before a Context.t is instantiated
277ffbb to
f7f6cd0
Compare
0052b42 to
69c2de3
Compare
965a643 to
a57a18c
Compare
a57a18c to
2e1586c
Compare
2e1586c to
b25d227
Compare
Splits the protocol unit test jobs over multiple runners. Furthermore, tweak the `test_script_wrapper.sh` and the Makefile targets using it so that dune is invoked once with several targets, instead of one invocation per target. Thus, dune parallelism is exploited.
CI/Tests: manually balance unit tests See merge request tezos/tezos!4057
Add selected_snapshot RPC Closes #2485 See merge request tezos/tezos!4479
Proto: compile the protocol environment without Stdlib (fixes #2209) Closes #2209 See merge request tezos/tezos!4482
Tx_rollup,Proto: remove fixme See merge request tezos/tezos!4531
Proto,Tx_rollups: Inbox message count limit See merge request tezos/tezos!4548
doc: explicit RPC path prefixes See merge request tezos/tezos!4570
Tx rollup,Proto: clean empty balance in the context. Closes #2495 See merge request tezos/tezos!4594
Proto: fix https://gitlab.com/tezos/tezos/-/issues/2084 Closes #2554 and #2084 See merge request tezos/tezos!4457
…ster' Add tzip info about backwards compatibility to the doc See merge request tezos/tezos!4544
Tx_rollup: fix typos and constants in python See merge request tezos/tezos!4566
3da7ee3 to
9e3ba2f
Compare
9e3ba2f to
fb757a2
Compare
|
|
||
| let init ?patch_context:user_patch_context_opt ?readonly | ||
| (* ?indexing_strategy *) x = | ||
| ?(indexing_strategy = `Minimal) x = |
There was a problem hiding this comment.
No need to put the minimal here
The commits should help you understand the refactorings that I made on existing code. Every commit from and after
lib_context: Restore compilationcompile.