-
Notifications
You must be signed in to change notification settings - Fork 288
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
mempool: Move to internal. #2274
Conversation
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.
Looks good to me. Did notice one minor typo in the first commit/PR description:
s/The/This is part of the overall effort
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.
Besides needing a rebase this looks good.
07c3486
to
3d59f75
Compare
Rebased and fixed the commit message typo pointed out by @rstaudt2. |
3d59f75
to
a7adef7
Compare
At the end of the file at |
Not completely sure, but in the commit message |
This makes the mempool an internal package such that it will no longer be an exported module. The only place its functionality is really needed is for the internal implementation of dcrd itself and thus having an unnecessary exported module significantly increases the maintenance burden. This is part of the overall effort to reduce the total number of modules and eventually get to the point it will be possible to follow semver for the root module. It is worth noting that there are a few constants, which will be listed below, that were exported from this module that callers might have previously relied upon. However, due to previous discussions about the goal of removing the module, a code search has revealed that there are no known callers that still rely on them. The aforementioned constants are: - MaxStandardTxSize - DefaultMinRelayTxFee - BaseStandardVerifyFlags Overview of the major changes: - Move the following files from mempool -> internal/mempool: - README.md - doc.go - error.go - log.go - mempool.go - mempool_test.go - policy.go - policy_test.go - Remove mempool/go.mod and mempool/go.sum - Make the README.md and doc.go files match the new reality - Update all import paths in the repository accordingly - Remove the dependency from the root go.mod - Run go mod tidy on all modules
a7adef7
to
3e9c906
Compare
@JoeGruffins Regarding the Regarding the other one, it seems fine to me with or without the word where. |
3e9c906
to
a524703
Compare
This requires #2273.
This makes the
mempool
an internal package such that it will no longer be an exported module. The only place its functionality is really needed is for the internal implementation of dcrd itself and thus having an unnecessary exported module significantly increases the maintenance burden.This is part of the overall effort to reduce the total number of modules and eventually get to the point it will be possible to follow semver for the root module.
It is worth noting that there are a few constants, which will be listed below, that were exported from this module that callers might have previously relied upon. However, due to previous discussions about the goal of removing the module, a code search has revealed that there are no known callers that still rely on them.
The aforementioned constants are:
MaxStandardTxSize
DefaultMinRelayTxFee
BaseStandardVerifyFlags
Overview of the major changes:
mempool
->internal/mempool
:README.md
doc.go
error.go
log.go
mempool.go
mempool_test.go
policy.go
policy_test.go
mempool/go.mod
andmempool/go.sum
README.md
anddoc.go
files match the new realitygo.mod
go mod tidy
on all modules