diff options
author | Gregory Maxwell <greg@xiph.org> | 2014-12-15 14:38:25 -0800 |
---|---|---|
committer | Gregory Maxwell <greg@xiph.org> | 2014-12-15 14:50:24 -0800 |
commit | 64849306905e625fd44d297e8d58c3e1dd98cb90 (patch) | |
tree | ce42b5abcff9137685d128aa21d11eef99feb5f2 /contrib/bitrpc | |
parent | 13c077c7cfe9f367c721f3d99924b3d568afb4d0 (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.
Diffstat (limited to 'contrib/bitrpc')
0 files changed, 0 insertions, 0 deletions