-
Notifications
You must be signed in to change notification settings - Fork 1.2k
feat: trickle transactions from masternodes to non-masternodes #7045
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
base: develop
Are you sure you want to change the base?
feat: trickle transactions from masternodes to non-masternodes #7045
Conversation
✅ No Merge Conflicts DetectedThis PR currently has no conflicts with other open PRs. |
WalkthroughA single file change in Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20–25 minutes
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used📓 Path-based instructions (1)src/**/*.{cpp,h,hpp,cc}📄 CodeRabbit inference engine (CLAUDE.md)
Files:
🧠 Learnings (1)📓 Common learnings🔇 Additional comments (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
UdjinM6
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK f69d946
Issue being fixed or feature implemented
Masternodes immediately propagating transactions to all peers can leak some info about network topography, and could be used to identify which masternode or masternodes were likely first sent a transaction. It also places additional load on masternodes.
Allowing masternodes to trickle out transactions to non-masternode peers allows them to batch multiple transactions in a single INV notification, while not affecting the performance of InstantSend as txes from MN to MN continue to be sent immediately.
What was done?
Only immediately send transactions if both the sender and receiver are masternodes
How Has This Been Tested?
Breaking Changes
This will make testing "instantsend latency" a bit harder, as the propogation of the initial transaction may be delayed to us, if we are not a masternode. For testing, we should consider having multiple masternodes connection to us via
addnodeRPC which should set theNetPermissionFlags::NoBanflag and allow us to receive the TX in more real time.Checklist:
Go over all the following points, and put an
xin all the boxes that apply.