-
Notifications
You must be signed in to change notification settings - Fork 223
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
Add mass limit to mempool #1627
Conversation
Codecov Report
@@ Coverage Diff @@
## v0.10.0-dev #1627 +/- ##
===============================================
+ Coverage 60.40% 60.41% +0.01%
===============================================
Files 533 533
Lines 20684 20687 +3
===============================================
+ Hits 12495 12499 +4
+ Misses 6234 6233 -1
Partials 1955 1955
Continue to review full report at Codecov.
|
domain/miningmanager/factory.go
Outdated
func (f *factory) NewMiningManager(consensus externalapi.Consensus, blockMaxMass uint64, acceptNonStd bool) MiningManager { | ||
mempool := mempoolpkg.New(consensus, acceptNonStd) | ||
func (f *factory) NewMiningManager(consensus externalapi.Consensus, blockMaxMass uint64, acceptNonStd bool, params *dagconfig.Params) MiningManager { | ||
mempool := mempoolpkg.New(consensus, acceptNonStd, params) |
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.
It appears that the only reason why you're passing the entire params
into the mempool is for MaxMassAcceptedByBlock.
You've already passed MaxMassAcceptedByBlock into NewMiningManager, (it's blockMaxMass
) so why not just pass that into the mempool instead?
…d into add-mass-limit-to-mempool
No description provided.