Branch: refs/heads/master
  Home:   https://github.com/btcsuite/btcd
  Commit: 7fac099bee3a9f48512a8cb389b7d53e0c392c1b
      
https://github.com/btcsuite/btcd/commit/7fac099bee3a9f48512a8cb389b7d53e0c392c1b
  Author: Dave Collins <d...@davec.name>
  Date:   2016-08-19 (Fri, 19 Aug 2016)

  Changed paths:
    M blockmanager.go
    M config.go
    M log.go
    R mempool.go
    A mempool/README.md
    A mempool/error.go
    A mempool/log.go
    A mempool/mempool.go
    A mempool/policy.go
    A mempool/policy_test.go
    R mempoolerror.go
    M mining.go
    R policy.go
    R policy_test.go
    M rpcserver.go
    M server.go

  Log Message:
  -----------
  mempool: Refactor mempool code to its own package. (#737)

This does the minimum work necessary to refactor the mempool code into
its own package.  The idea is that separating this code into its own
package will greatly improve its testability, allow independent
benchmarking and profiling, and open up some interesting opportunities
for future development related to the memory pool.

There are likely some areas related to policy that could be further
refactored, however it is better to do that in future commits in order
to keep the changeset as small as possible during this refactor.

Overview of the major changes:

- Create the new package
- Move several files into the new package:
  - mempool.go -> mempool/mempool.go
  - mempoolerror.go -> mempool/error.go
  - policy.go -> mempool/policy.go
  - policy_test.go -> mempool/policy_test.go
- Update mempool logging to use the new mempool package logger
- Rename mempoolPolicy to Policy (so it's now mempool.Policy)
- Rename mempoolConfig to Config (so it's now mempool.Config)
- Rename mempoolTxDesc to TxDesc (so it's now mempool.TxDesc)
- Rename txMemPool to TxPool (so it's now mempool.TxPool)
- Move defaultBlockPrioritySize to the new package and export it
- Export DefaultMinRelayTxFee from the mempool package
- Export the CalcPriority function from the mempool package
- Introduce a new RawMempoolVerbose function on the TxPool and update
  the RPC server to use it
- Update all references to the mempool to use the package.
- Add a skeleton README.md


Reply via email to