Branch: refs/heads/master
Home: https://github.com/conformal/btcd
Commit: 000691dc9e0ec6c6f5e2323280d2b595a035f345
https://github.com/conformal/btcd/commit/000691dc9e0ec6c6f5e2323280d2b595a035f345
Author: Dave Collins <[email protected]>
Date: 2014-07-14 (Mon, 14 Jul 2014)
Changed paths:
M blockmanager.go
M log.go
M mempool.go
A mempoolerror.go
M peer.go
M rpcserver.go
Log Message:
-----------
Implement BIP0061 reject handling (pver 70002).
This commit implements reject handling as defined by BIP0061 and bumps the
maximum supported protocol version to 70002 accordingly.
As a part of supporting this a new error type named RuleError has been
introduced which encapsulates and underlying error which could be one of
the existing TxRuleError or btcchain.RuleError types.
This allows a single high level type assertion to be used to determine if
the block or transaction was rejected due to a rule error or due to an
unexpected error. Meanwhile, an appropriate reject error can be created
from the error by pulling the underlying error out and using it.
Also, a check for minimum protocol version of 209 has been added.
Closes #133.