solana
solana copied to clipboard
[TieredStorage] In-memory struct for writing OwnersBlock
Problem
To write the owners-block, it requires an in-memory struct that maintains a set of unique owner addresses while providing a look-up function to obtain the OwnerOffset with the specified owner address.
Summary of Changes
This PR adds OwnersTable, the in-memory struct that maintains a set of unique owner addresses while providing a look-up function to obtain the OwnerOffset with the specified owner address.
Test Plan
A new unit-test is added.
Codecov Report
Attention: 32 lines
in your changes are missing coverage. Please review.
Comparison is base (
8ff511e
) 81.6% compared to head (8704abe
) 81.6%. Report is 9 commits behind head on master.
Additional details and impacted files
@@ Coverage Diff @@
## master #34853 +/- ##
=========================================
- Coverage 81.6% 81.6% -0.1%
=========================================
Files 827 827
Lines 223884 223911 +27
=========================================
- Hits 182841 182836 -5
- Misses 41043 41075 +32
Same CI error here. Will rebase once the PR has been fully reviewed.
+ cargo audit --ignore RUSTSEC-2020-0071 --ignore RUSTSEC-2023-0001 --ignore RUSTSEC-2022-0093
--
| Fetching advisory database from `https://github.com/RustSec/advisory-db.git`
| Loaded 592 security advisories (from /usr/local/cargo/advisory-db)
| Updating crates.io index
| Scanning Cargo.lock for vulnerabilities (799 crate dependencies)
| Crate: shlex
| Version: 1.1.0
| Title: Multiple issues involving quote API
| Date: 2024-01-21
| ID: RUSTSEC-2024-0006
| URL: https://rustsec.org/advisories/RUSTSEC-2024-0006
| Solution: Upgrade to >=1.3.0
| Dependency tree:
| shlex 1.1.0
Rebased