Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v1.16: Report new received crds signatures and their respective origi…
…ns to metrics (backport of #32504) (#32674) Report new received crds signatures and their respective origins to metrics (#32504) * screwed up old branch and syncing with upstream branch * add fixed size ring buff instead of variable sized vecdeque for reporting signatures * modify difficulty to take in n 0 bits and check if signature ending ends in n 0 bits * update to only push every 18 trailing zero bits. and clean up * report origin with signature. and set trailing 0s to 8 for local testing * change back to 18 trailing zeros and rm unused imports * run cargo rmt * run ./scripts/cargo-for-all-lock-files.sh tree * allow integer arithmetic for bit comparison * rm unused lifetime * rm duplicate entry? * re implement ring buf * put ringbuf in sorted order * ringbuf in cargo.toml now in sorted order * rm ring buf, refactor, fix trailing zero bug * fix bug in trailing zeros. was comparing wrong ones * fix needless range loop bug * fix bug * change trailing zero checking to build in methods and only report first 8 bytes of signature and origin pubkey * report full origin string and first 8 bytes of signature * set SIGNATURE_SAMPLE_TRAILING_ZEROS back to 18 * forgot to run cargo tree * avoid panic and change working * rm bs58 * pass in Option<String> into datapoint_info * shorten metric names (cherry picked from commit 80f7082) Co-authored-by: Greg Cusack <greg.cusack@solana.com>
- Loading branch information