lbcd/mempool
Olaoluwa Osuntokun a82f67b538
mempool: add closure to compute median time past to config
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.
2016-10-19 11:13:25 -07:00
..
error.go mempool: Refactor mempool code to its own package. (#737) 2016-08-19 11:08:37 -05:00
log.go mempool: Refactor mempool code to its own package. (#737) 2016-08-19 11:08:37 -05:00
mempool.go mempool: add closure to compute median time past to config 2016-10-19 11:13:25 -07:00
mempool_test.go mempool: add closure to compute median time past to config 2016-10-19 11:13:25 -07:00
policy.go mempool: Improve tx input standard checks. 2016-08-24 23:16:23 -05:00
policy_test.go mempool: Refactor mempool code to its own package. (#737) 2016-08-19 11:08:37 -05:00
README.md mempool: Refactor mempool code to its own package. (#737) 2016-08-19 11:08:37 -05:00

mempool

[Build Status] (https://travis-ci.org/btcsuite/btcd) ![ISC License] (http://img.shields.io/badge/license-ISC-blue.svg) [GoDoc] (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.