Branch: refs/heads/master
  Home:   https://github.com/btcsuite/btcd
  Commit: a82f67b538d50501741a3322238218577fd62669
      
https://github.com/btcsuite/btcd/commit/a82f67b538d50501741a3322238218577fd62669
  Author: Olaoluwa Osuntokun <[email protected]>
  Date:   2016-10-19 (Wed, 19 Oct 2016)

  Changed paths:
    M mempool/mempool.go
    M mempool/mempool_test.go
    M server.go

  Log Message:
  -----------
  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.


  Commit: e7caccc866b2caef61aefc9790a952c94cd04fd5
      
https://github.com/btcsuite/btcd/commit/e7caccc866b2caef61aefc9790a952c94cd04fd5
  Author: Olaoluwa Osuntokun <[email protected]>
  Date:   2016-10-19 (Wed, 19 Oct 2016)

  Changed paths:
    M mempool/mempool.go
    M mempool/policy.go
    M mempool/policy_test.go

  Log Message:
  -----------
  mempool: transaction finality checks now use median-time-past

This coincides with the mempool only, policy change which enforces
transaction finality according to the median-time-past rather than
blockheader timestamps. The behavior is pre-cursor to full blown BIP
113 consensus deployment, and subsequent activation.

As a result, the TimeSource field in the mempoolConfig is no longer
needed so it has been removed. Additionally, checkTransactionStandard has been
modified to instead take a time.Time as the mempool is no longer explicitly
dependant on a Chain instance.


Compare: https://github.com/btcsuite/btcd/compare/a6bf1d9850f8...e7caccc866b2

Reply via email to