Skip to content

Commit

Permalink
Weight ip prefix (kaspanet#220)
Browse files Browse the repository at this point in the history
* checkpoint

* weighted ip prefix iterator

* update_comment

* better the test

* clean-up

* cargo fmt --all

* fix clippy

* PrefixBucket, tests, comments

* add config to address manager test.

* ignore code block in comment

---------

Co-authored-by: D-stacks <[email protected]>
  • Loading branch information
D-Stacks and D-stacks authored Jul 20, 2023
1 parent 13f09d0 commit 6dc3803
Show file tree
Hide file tree
Showing 4 changed files with 332 additions and 10 deletions.
152 changes: 145 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions components/addressmanager/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,7 @@ parking_lot.workspace = true
borsh.workspace = true
log.workspace = true
local-ip-address = "0.5.3"

[dev-dependencies]
statrs = "0.13.0"
statest = "0.2.2"
Loading

0 comments on commit 6dc3803

Please sign in to comment.