aboutsummaryrefslogtreecommitdiff
path: root/src/timedata.cpp
diff options
context:
space:
mode:
authorGregory Maxwell <greg@xiph.org>2014-12-15 14:38:25 -0800
committerWladimir J. van der Laan <laanwj@gmail.com>2014-12-23 12:30:14 +0100
commit15ad0b54fab09d31ab7171b83ef58fa4c5f4aea9 (patch)
treee005ab4b85833b616385173a2c4fa95042fc64c8 /src/timedata.cpp
parent11855c1f990a4a66f55de60a30a8898ccbf766ec (diff)
Apply AreSane() checks to the fees from the network.
'Sane' was already defined by this code as: fee.GetFeePerK() > minRelayFee.GetFeePerK() * 10000 But sanity was only enforced for data loaded from disk. Note that this is a pretty expansive definition of 'sane': A 10 BTC fee is still passes the test if its on a 100kb transaction. This prevents a single insane fee on the network from making us reject our stored fee data at start. We still may reject valid saved fee state if minRelayFee is changed between executions. This also reduces the risk and limits the damage from a cascading failure where one party pays a bunch of insane fees which cases others to pay insane fees. Rebased-From: 64849306905e625fd44d297e8d58c3e1dd98cb90 Github-Pull: #5481
Diffstat (limited to 'src/timedata.cpp')
0 files changed, 0 insertions, 0 deletions