Sanity checks for estimates

Require at least 11 samples before giving fee/priority estimates.

And have wallet-created transactions go throught the fee-sanity-check
code path.
This commit is contained in:
Gavin Andresen
2014-06-23 10:58:59 -04:00
parent b33d1f5ee5
commit 4b7b1bb1ac
3 changed files with 10 additions and 5 deletions

View File

@@ -452,7 +452,7 @@ public:
int GetDepthInMainChain() const { CBlockIndex *pindexRet; return GetDepthInMainChain(pindexRet); }
bool IsInMainChain() const { CBlockIndex *pindexRet; return GetDepthInMainChainINTERNAL(pindexRet) > 0; }
int GetBlocksToMaturity() const;
bool AcceptToMemoryPool(bool fLimitFree=true);
bool AcceptToMemoryPool(bool fLimitFree=true, bool fRejectInsaneFee=true);
};