diff options
| author | Gavin Andresen <[email protected]> | 2014-06-23 10:58:59 -0400 |
|---|---|---|
| committer | Gavin Andresen <[email protected]> | 2014-07-03 13:44:56 -0400 |
| commit | 4b7b1bb1ac54e067d889170757a8c45f0baaae3d (patch) | |
| tree | 137436a4b855fd776d59f019e5a4d304c9253424 /src/main.cpp | |
| parent | Use fee/priority estimates in wallet CreateTransaction (diff) | |
| download | discoin-4b7b1bb1ac54e067d889170757a8c45f0baaae3d.tar.xz discoin-4b7b1bb1ac54e067d889170757a8c45f0baaae3d.zip | |
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.
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp index 6be1a29c6..d1ddf1600 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1129,10 +1129,10 @@ int CMerkleTx::GetBlocksToMaturity() const } -bool CMerkleTx::AcceptToMemoryPool(bool fLimitFree) +bool CMerkleTx::AcceptToMemoryPool(bool fLimitFree, bool fRejectInsaneFee) { CValidationState state; - return ::AcceptToMemoryPool(mempool, state, *this, fLimitFree, NULL); + return ::AcceptToMemoryPool(mempool, state, *this, fLimitFree, NULL, fRejectInsaneFee); } |