Lib_context: factorize context binary creation
Context
The commit says "allow" context binary creation but actually it's already possible. This merge request is just a proposal to refactor the declaration of make_empty_context and make_empty_tree to facilitate the usage when the context is binary. I believe, we soru people, are the only users of this function.
Putting @igarnier as reviewer as you introduced the function make_empty_context :-).
Manually testing the MR
CI?
Checklist
-
Document the interface of any function added or modified (see the coding guidelines) -
Document any change to the user interface, including configuration parameters (see node configuration) -
Provide automatic testing (see the testing guide). -
For new features and bug fixes, add an item in the appropriate changelog ( docs/protocols/alpha.rstfor the protocol and the environment,CHANGES.rstat the root of the repository for everything else). -
Select suitable reviewers using the Reviewersfield below. -
Select as Assigneethe next person who should take action on that MR