Skip to content

fix(dashmate): SSL domain verification config could not be generated in WSL#673

Merged
shuplenkov merged 1 commit into
v0.24-devfrom
fix-envoy
Dec 15, 2022
Merged

fix(dashmate): SSL domain verification config could not be generated in WSL#673
shuplenkov merged 1 commit into
v0.24-devfrom
fix-envoy

Conversation

@shuplenkov

@shuplenkov shuplenkov commented Dec 15, 2022

Copy link
Copy Markdown

Issue being fixed or feature implemented

Under WSL environment SSL domain verification envoy config messed up in one line.

What was done?

Fixed DOT engine configuration.

How Has This Been Tested?

Manual

Breaking Changes

No

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

@shuplenkov shuplenkov added this to the v0.24.0 milestone Dec 15, 2022
@shuplenkov shuplenkov changed the title fix(dashmate): envoy config for SSL domain verification could noy be generated under some environments fix(dashmate): SSL domain verification config could not be generated in WSL Dec 15, 2022

@shumkov shumkov left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@shuplenkov
shuplenkov merged commit c2d89bc into v0.24-dev Dec 15, 2022
@shuplenkov
shuplenkov deleted the fix-envoy branch December 15, 2022 13:22
QuantumExplorer added a commit that referenced this pull request May 19, 2026
Bumps grovedb pin to #674 head
`49e17ce47744915878fcf1ef49de916e9d3ddde3` and wires the new
`EstimatedLayerSizes::AllItemsWithSumItem` /
`AllReferencesWithSumItem` variants + the four
`provable_*_trees_weight` fields on `EstimatedSumTrees::SomeSumTrees`
through dash-platform's estimation paths.

## Address-funds estimation (v0/v1 split — consensus-safe)

`for_address_balance_update` now dispatches on
`drive_version.methods.address_funds.cost_estimation.for_address_balance_update`:

- **v0** (unchanged, locked to protocol v11 production): uses
  `EstimatedLayerSizes::AllItems(...)` for the CLEAR_ADDRESS_POOL
  leaf layer. Undercharges by ~10 bytes per insert (the i64 sum_value
  on `ItemWithSumItem` isn't accounted for), but the undercharge is
  consensus-locked.
- **v1** (active at protocol v12+): switches the leaf layer to
  `AllItemsWithSumItem(...)` so dry-run fees match applied fees.

Method-version table: new `DRIVE_ADDRESS_FUNDS_METHOD_VERSIONS_V2`
bumps `for_address_balance_update: 0 → 1`. Wired into
`DRIVE_VERSION_V7` (protocol v12). V1 table (`for_address_balance_update: 0`)
stays selected for v11 (`DRIVE_VERSION_V6`).

## Contract-insertion estimation refactor (v12-only, no consensus risk)

`add_estimation_costs_for_contract_insertion_v1` previously tallied
all count-bearing children (CountTree + ProvableCountTree) into a
single `count_trees_weight`. With grovedb #674's finer-grained
weights, the loop now:

- Categorizes each doctype-children tree via
  `property_name_tree_type_from_flags` (a 9-way matrix matching the
  selection in `add_indices_for_index_level_for_contract_operations`).
- Tallies into a `TreeTypeWeights` struct keyed by every TreeType
  variant the contract apply path can write.
- Maps the tally to `SomeSumTrees` with the right weight per slot —
  including `provable_sum_trees_weight`,
  `provable_count_sum_trees_weight`, and
  `provable_count_provable_sum_trees_weight` for the v12 sum-tree
  feature's `range_summable` / `range_summable + range_countable`
  indexes.

Existing test
`range_countable_index_contract_counts_both_pk_and_index_as_count_children`
updated to reflect the new split: CountTree primary-key counts as
`count_trees_weight: 1`, ProvableCountTree index counts as
`provable_count_trees_weight: 1` (was previously both lumped into
`count_trees_weight: 2`).

## Per-element estimation already wired

The three v12-only doc-storage sites continue to use the per-element
sum-aware helpers from grovedb #673 (
`required_item_with_sum_item_space` /
`required_reference_with_sum_item_space`) added in the previous
commit.

## Snapshot updates

Two v12 fee snapshots updated for the +99_260 processing-fee shift
that grovedb #674's new cost formula introduces:
- `identity::balance::update::should_add_to_balance_latest_version_estimated`:
  4_278_840 → 4_378_100. v1 variant (`should_add_to_balance_first_version_estimated`)
  still pins 4_278_840 — grovedb #674's v0/v1 formulas are byte-stable.
- `tokens::balance::update::should_estimate_costs_without_state`:
  same delta, same explanation.

## Struct-field plumbing

All 25 construction sites of `EstimatedSumTrees::SomeSumTrees` and
`EstimatedLayerSizes::Mix` in rs-drive updated to fill the new
fields with `0` / `None` respectively (preserving today's behavior
since no caller has data to populate them yet).

drive 3165/3165, dpp 3461/3467 (6 ignored), drive-abci 2466/2475 (9
ignored). clippy `--workspace --all-features -D warnings` clean.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants