Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Publish locally-made transactions to peers. #850

Merged
merged 2 commits into from
Mar 28, 2016
Merged

Publish locally-made transactions to peers. #850

merged 2 commits into from
Mar 28, 2016

Conversation

gavofyork
Copy link
Contributor

No description provided.

@gavofyork gavofyork added the A0-pleasereview 🤓 Pull request needs code review. label Mar 28, 2016

let lucky_peers = {
// sqrt(x)/x scaled to max u32
let fraction = (self.peers.len() as f64).powf(-0.5).mul(u32::max_value() as f64).round() as u32;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

at some point we should refactor this peer selection code into a common function

@arkpar arkpar added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Mar 28, 2016
@gavofyork gavofyork merged commit 6399c0a into master Mar 28, 2016
@gavofyork gavofyork deleted the pubtxs branch March 28, 2016 17:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A8-looksgood 🦄 Pull request is reviewed well.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants