Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Cleanup stakes for gossip #2860

Merged
merged 4 commits into from
Feb 21, 2019

Conversation

sagar-solana
Copy link
Contributor

Problem

Gossip isn't correctly using stakes, instead its just using a node's bank balance.

Summary of Changes

Added a method to bank to populate stakes and updated gossip to use a Map of node ids and stakes instead of plumbing bank into the deepest depths of gossip.

Fixes #

@sagar-solana sagar-solana requested a review from garious February 21, 2019 02:48
@@ -15,6 +15,7 @@ fnv = "1.0.6"
hashbrown = "0.1.8"
log = "0.4.2"
rand = "0.6.5"
rayon = "1.0.3"
Copy link
Contributor

Choose a reason for hiding this comment

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

Are you using this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh dang, I was earlier. I'll get rid of it asap. Thanks!

Copy link
Contributor

@garious garious left a comment

Choose a reason for hiding this comment

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

So pretty. Thanks!

@codecov
Copy link

codecov bot commented Feb 21, 2019

Codecov Report

Merging #2860 into master will decrease coverage by <.1%.
The diff coverage is 94.2%.

@@           Coverage Diff            @@
##           master   #2860     +/-   ##
========================================
- Coverage    78.1%   78.1%   -0.1%     
========================================
  Files         127     127             
  Lines       19336   19280     -56     
========================================
- Hits        15106   15058     -48     
+ Misses       4230    4222      -8

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants