a82f67b538
This commit adds an additional closure function to the mempool’s config which computes the median time past from the point of view of the best node in the chain. The mempool test harness has also been updated to allow setting a mock median time past for testing purposes. In addition to increasing the testability of the mempool, this commit should also speed up transaction and block validation for BIP 113 as the MTP no longer needs to be re-calculated each time from scratch. |
||
---|---|---|
.. | ||
error.go | ||
log.go | ||
mempool.go | ||
mempool_test.go | ||
policy.go | ||
policy_test.go | ||
README.md |
mempool
[] (https://travis-ci.org/btcsuite/btcd) ![ISC License] (http://img.shields.io/badge/license-ISC-blue.svg) [] (http://godoc.org/github.com/btcsuite/btcd/mempool)
Overview
This package is currently a work in progress.
Installation and Updating
$ go get -u github.com/btcsuite/btcd/mempool
License
Package mempool is licensed under the copyfree ISC License.