refactor: simplifying storage by giving it to the client directly - #3851
refactor: simplifying storage by giving it to the client directly#3851SimonRastikian wants to merge 140 commits into
Conversation
…same number of participants
… possible value due to 60%-80% range
…_bound as helpers
…nstructionthreshold
…inator) Colleagues did not agree on an 80% upper bound for the GovernanceThreshold, so set MAX_THRESHOLD_NUMERATOR = MAX_THRESHOLD_DENOMINATOR (5/5 = 100%). The relative upper cap structure is kept but never binds below the absolute `k <= n` check, so the GovernanceThreshold may again go up to the participant count. The cross-domain rule (GovernanceThreshold >= max(ReconstructionThreshold)) is unchanged. Revert the test changes that were only needed to satisfy the 80% cap (dropping thresholds / raising participant counts) and remove the now-meaningless dedicated upper-cap tests: - thresholds.rs: restore 5/5-participant thresholds; drop reject-above-cap test - dto_mapping.rs / lib.rs: drop the upper-cap rejection tests - lib.rs verify_tee: rework the kickout-refusal fixture to break the relation via the participant-count ceiling instead of the cap - running.rs: make the reconstruction>governance test regenerate until gov < n - sandbox + e2e + node resharing tests: restore original participant/threshold values - docs/design/domain-separation.md: describe the cap as disabled (100%) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…hreshold' of github.com:near/mpc into 3499-correlate-governancethreshold-with-reconstructionthreshold
…hreshold' of github.com:near/mpc into 3499-correlate-governancethreshold-with-reconstructionthreshold # Conflicts: # crates/contract/src/dto_mapping.rs
Co-authored-by: Mårten Blankfors <marten@blankfors.se>
…com:near/mpc into 3164-adding-ReconstructionThreshold-in-node
Pull request overviewRefactors Changes:
Reviewed changesPer-file summary
FindingsNo blocking issues. Purely mechanical refactor with no behavior change:
Non-blocking (nits, optional):
✅ Approved |
a986619 to
93c9ab5
Compare
|
PR title type suggestion: The changed files appear to be configuration, assets, and build files (VSCode config, Cargo.lock, fonts) rather than source code. Consider using |
93c9ab5 to
a986619
Compare
Simplifies the triple generation part following #3164. Concretely, it refactors TripleStorage::new so the storage takes the network client directly, instead of being handed the two pieces of state it used to derive from that client.
Net effect: TripleStorage depends on one cohesive object (the mesh client) rather than being passed several client-derived values separately.
Reference #1680 (comment)