Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Optimize selection of system and batch witnesses #871

Merged
merged 1 commit into from
Nov 11, 2021

Conversation

sandrask
Copy link
Contributor

@sandrask sandrask commented Nov 11, 2021

Optimize selection of batch and system witnesses by using common witnesses. If there is an intersection between eligible batch witnesses set and eligible system witnesses set then use those common witnesses first during witnesses selection (if witness policy is an AND policy).

Closes #869

Signed-off-by: Sandra Vrtikapa sandra.vrtikapa@securekey.com

@cla-bot cla-bot bot added the cla-signed label Nov 11, 2021
Optimize selection of batch and system witnesses by using common witnesses. If there is an intersection between eligible batch witnesses set and eligible system witnesses set use those first during witnesses selection if witness policy is an AND policy.

Closes trustbloc#869

Signed-off-by: Sandra Vrtikapa <sandra.vrtikapa@securekey.com>
@codecov
Copy link

codecov bot commented Nov 11, 2021

Codecov Report

Merging #871 (60ef30e) into main (5524fe4) will increase coverage by 0.13%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #871      +/-   ##
==========================================
+ Coverage   89.27%   89.40%   +0.13%     
==========================================
  Files         156      156              
  Lines       13730    13758      +28     
==========================================
+ Hits        12257    12301      +44     
+ Misses        910      896      -14     
+ Partials      563      561       -2     
Impacted Files Coverage Δ
pkg/anchor/witness/policy/policy.go 98.68% <100.00%> (+0.29%) ⬆️
pkg/store/witness/witness.go 90.80% <0.00%> (+4.59%) ⬆️
...pub/service/inbox/httpsubscriber/httpsubscriber.go 100.00% <0.00%> (+9.87%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5524fe4...60ef30e. Read the comment docs.

@fqutishat fqutishat merged commit fc5e43a into trustbloc:main Nov 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Optimize selection of system and batch witnesses
3 participants