Apply AreSane() checks to the fees from the network.
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

ticclassic/ic,diggcoin/diggcoin,genavarov/ladacoin,zottejos/merelcoin,Mrs-X/PIVX,grumpydevelop/singularity,dashpay/dash,OstlerDev/florincoin,terracoin/terracoin,MonetaryUnit/MUE-Src,willwray/dash,oklink-dev/bitcoin,joulecoin/joulecoin,koharjidan/litecoin,mikehearn/bitcoinxt,aspirecoin/aspire,lakepay/lake,mapineda/litecoin,LIMXTEC/DMDv3,OstlerDev/florincoin,supcoin/supcoin,my-first/octocoin,BlockchainTechLLC/3dcoin,npccoin/npccoin,diggcoin/diggcoin,ivansib/sib16,GwangJin/gwangmoney-core,nmarley/dash,cerebrus29301/crowncoin,Mrs-X/PIVX,RyanLucchese/energi,mikehearn/bitcoinxt,my-first/octocoin,DynamicCoinOrg/DMC,capitalDIGI/litecoin,ticclassic/ic,antcheck/antcoin,Thracky/monkeycoin,ColossusCoinXT/ColossusCoinXT,ptschip/bitcoinxt,genavarov/brcoin,Mrs-X/Darknet,PIVX-Project/PIVX,fussl/elements,joulecoin/joulecoin,DynamicCoinOrg/DMC,axelxod/braincoin,genavarov/ladacoin,DynamicCoinOrg/DMC,ticclassic/ic,MonetaryUnit/MUE-Src,Rav3nPL/doubloons-0.10,UdjinM6/dash,DMDcoin/Diamond,alejandromgk/Lunar,xuyangcn/opalcoin,NunoEdgarGub1/elements,mikehearn/bitcoinxt,gwillen/elements,ahmedbodi/test2,dmrtsvetkov/flowercoin,axelxod/braincoin,fussl/elements,freelion93/mtucicoin,Mrs-X/PIVX,NunoEdgarGub1/elements,koharjidan/litecoin,HeliumGas/helium,ahmedbodi/test2,diggcoin/diggcoin,florincoin/florincoin,joulecoin/joulecoin,genavarov/lamacoin,Bloom-Project/Bloom,PIVX-Project/PIVX,capitalDIGI/DIGI-v-0-10-4,ColossusCoinXT/ColossusCoinXT,pstratem/elements,biblepay/biblepay,mapineda/litecoin,Petr-Economissa/gvidon,slingcoin/sling-market,fullcoins/fullcoin,joulecoin/joulecoin,sipa/elements,NunoEdgarGub1/elements,aburan28/elements,Thracky/monkeycoin,ingresscoin/ingresscoin,RibbitFROG/ribbitcoin,pinkevich/dash,mycointest/owncoin,capitalDIGI/DIGI-v-0-10-4,kleetus/bitcoinxt,jmgilbert2/energi,ediston/energi,pelorusjack/BlockDX,fussl/elements,jmgilbert2/energi,oklink-dev/bitcoin,freelion93/mtucicoin,ionomy/ion,pstratem/elements,inkvisit/sarmacoins,droark/elements,rsdevgun16e/energi,okinc/bitcoin,gwillen/elements,schinzelh/dash,dev1972/Satellitecoin,HeliumGas/helium,ivansib/sib16,thelazier/dash,ivansib/sibcoin,ArgonToken/ArgonToken,rsdevgun16e/energi,Vsync-project/Vsync,genavarov/lamacoin,m0gliE/fastcoin-cli,pinkevich/dash,48thct2jtnf/P,kleetus/bitcoinxt,biblepay/biblepay,jmgilbert2/energi,mikehearn/bitcoinxt,jtimon/elements,PIVX-Project/PIVX,grumpydevelop/singularity,ivansib/sib16,MazaCoin/mazacoin-new,MazaCoin/maza,projectinterzone/ITZ,ArgonToken/ArgonToken,jtimon/elements,alejandromgk/Lunar,Electronic-Gulden-Foundation/egulden,DMDcoin/Diamond,nmarley/dash,apoelstra/elements,willwray/dash,presstab/PIVX,biblepay/biblepay,ediston/energi,genavarov/brcoin,willwray/dash,dmrtsvetkov/flowercoin,ticclassic/ic,pascalguru/florincoin,tropa/axecoin,axelxod/braincoin,putinclassic/putic,upgradeadvice/MUE-Src,tropa/axecoin,nmarley/dash,mapineda/litecoin,okinc/bitcoin,tropa/axecoin,ivansib/sibcoin,MazaCoin/mazacoin-new,sipa/elements,xawksow/GroestlCoin,genavarov/lamacoin,projectinterzone/ITZ,Petr-Economissa/gvidon,pascalguru/florincoin,Vsync-project/Vsync,keesdewit82/LasVegasCoin,truthcoin/blocksize-market,octocoin-project/octocoin,keesdewit82/LasVegasCoin,rdqw/sscoin,GwangJin/gwangmoney-core,Darknet-Crypto/Darknet,worldbit/worldbit,fullcoins/fullcoin,ingresscoin/ingresscoin,Mrs-X/Darknet,CoinProjects/AmsterdamCoin-v4,apoelstra/elements,presstab/PIVX,okinc/bitcoin,MazaCoin/maza,puticcoin/putic,PIVX-Project/PIVX,KibiCoin/kibicoin,pascalguru/florincoin,apoelstra/elements,upgradeadvice/MUE-Src,biblepay/biblepay,axelxod/braincoin,presstab/PIVX,LIMXTEC/DMDv3,axelxod/braincoin,crowning-/dash,kleetus/bitcoinxt,HeliumGas/helium,Bloom-Project/Bloom,keesdewit82/LasVegasCoin,dashpay/dash,Darknet-Crypto/Darknet,zottejos/merelcoin,HeliumGas/helium,crowning-/dash,Kenwhite23/litecoin,okinc/bitcoin,dgenr8/bitcoinxt,alejandromgk/Lunar,aburan28/elements,cerebrus29301/crowncoin,Kenwhite23/litecoin,my-first/octocoin,dashpay/dash,terracoin/terracoin,xawksow/GroestlCoin,grumpydevelop/singularity,Darknet-Crypto/Darknet,putinclassic/putic,fussl/elements,mockcoin/mockcoin,PIVX-Project/PIVX,capitalDIGI/DIGI-v-0-10-4,pstratem/elements,benzmuircroft/REWIRE.io,ArgonToken/ArgonToken,slingcoin/sling-market,pstratem/elements,ediston/energi,freelion93/mtucicoin,kleetus/bitcoinxt,KibiCoin/kibicoin,m0gliE/fastcoin-cli,RyanLucchese/energi,truthcoin/blocksize-market,inkvisit/sarmacoins,droark/elements,jmgilbert2/energi,coinkeeper/2015-06-22_18-52_viacoin,genavarov/ladacoin,OmniLayer/omnicore,MazaCoin/maza,truthcoin/blocksize-market,antcheck/antcoin,freelion93/mtucicoin,rsdevgun16e/energi,diggcoin/diggcoin,ionomy/ion,florincoin/florincoin,DMDcoin/Diamond,mycointest/owncoin,RibbitFROG/ribbitcoin,capitalDIGI/litecoin,Rav3nPL/doubloons-0.10,pelorusjack/BlockDX,tropa/axecoin,UdjinM6/dash,rdqw/sscoin,ionomy/ion,Rav3nPL/doubloons-0.10,gwillen/elements,axelxod/braincoin,CoinProjects/AmsterdamCoin-v4,mycointest/owncoin,truthcoin/blocksize-market,xuyangcn/opalcoin,PIVX-Project/PIVX,apoelstra/elements,octocoin-project/octocoin,ivansib/sib16,Bloom-Project/Bloom,MonetaryUnit/MUE-Src,gwillen/elements,Electronic-Gulden-Foundation/egulden,benzmuircroft/REWIRE.io,RyanLucchese/energi,ionomy/ion,Mrs-X/PIVX,HeliumGas/helium,Thracky/monkeycoin,schinzelh/dash,freelion93/mtucicoin,okinc/bitcoin,worldbit/worldbit,koharjidan/litecoin,apoelstra/elements,dev1972/Satellitecoin,npccoin/npccoin,aburan28/elements,ionomy/ion,zottejos/merelcoin,OmniLayer/omnicore,coinkeeper/2015-06-22_18-52_viacoin,grumpydevelop/singularity,ahmedbodi/test2,rdqw/sscoin,benzmuircroft/REWIRE.io,projectinterzone/ITZ,keesdewit82/LasVegasCoin,alejandromgk/Lunar,PandaPayProject/PandaPay,PIVX-Project/PIVX,terracoin/terracoin,biblepay/biblepay,thelazier/dash,CoinProjects/AmsterdamCoin-v4,genavarov/lamacoin,coinkeeper/2015-06-22_18-52_viacoin,midnight-miner/LasVegasCoin,nmarley/dash,dgenr8/bitcoinxt,schinzelh/dash,48thct2jtnf/P,PIVX-Project/PIVX,projectinterzone/ITZ,Thracky/monkeycoin,truthcoin/blocksize-market,genavarov/ladacoin,crowning-/dash,RibbitFROG/ribbitcoin,rdqw/sscoin,slingcoin/sling-market,putinclassic/putic,keesdewit82/LasVegasCoin,Darknet-Crypto/Darknet,florincoin/florincoin,pinkevich/dash,Rav3nPL/doubloons-0.10,terracoin/terracoin,koharjidan/litecoin,oklink-dev/bitcoin,NunoEdgarGub1/elements,jtimon/elements,ArgonToken/ArgonToken,ptschip/bitcoinxt,schinzelh/dash,LIMXTEC/DMDv3,ColossusCoinXT/ColossusCoinXT,Vsync-project/Vsync,genavarov/ladacoin,genavarov/lamacoin,ptschip/bitcoinxt,CoinProjects/AmsterdamCoin-v4,zottejos/merelcoin,antcheck/antcoin,worldbit/worldbit,dmrtsvetkov/flowercoin,xawksow/GroestlCoin,OstlerDev/florincoin,MonetaryUnit/MUE-Src,OstlerDev/florincoin,genavarov/lamacoin,florincoin/florincoin,Electronic-Gulden-Foundation/egulden,octocoin-project/octocoin,Bloom-Project/Bloom,PandaPayProject/PandaPay,droark/elements,nmarley/dash,Electronic-Gulden-Foundation/egulden,pstratem/elements,Vsync-project/Vsync,Kenwhite23/litecoin,PIVX-Project/PIVX,okinc/bitcoin,aspirecoin/aspire,rsdevgun16e/energi,dev1972/Satellitecoin,ptschip/bitcoinxt,dashpay/dash,ColossusCoinXT/ColossusCoinXT,OstlerDev/florincoin,terracoin/terracoin,MazaCoin/maza,OmniLayer/omnicore,dgenr8/bitcoinxt,cerebrus29301/crowncoin,inkvisit/sarmacoins,pelorusjack/BlockDX,DMDcoin/Diamond,MazaCoin/maza,upgradeadvice/MUE-Src,pascalguru/florincoin,BlockchainTechLLC/3dcoin,RyanLucchese/energi,48thct2jtnf/P,Rav3nPL/doubloons-0.10,Electronic-Gulden-Foundation/egulden,coinkeeper/2015-06-22_18-52_viacoin,cerebrus29301/crowncoin,BlockchainTechLLC/3dcoin,capitalDIGI/litecoin,schinzelh/dash,crowning-/dash,ticclassic/ic,supcoin/supcoin,lakepay/lake,mockcoin/mockcoin,npccoin/npccoin,crowning-/dash,puticcoin/putic,putinclassic/putic,jtimon/elements,pinkevich/dash,ivansib/sib16,capitalDIGI/DIGI-v-0-10-4,capitalDIGI/litecoin,pelorusjack/BlockDX,aspirecoin/aspire,fullcoins/fullcoin,Kenwhite23/litecoin,m0gliE/fastcoin-cli,biblepay/biblepay,willwray/dash,Rav3nPL/doubloons-0.10,NunoEdgarGub1/elements,coinkeeper/2015-06-22_18-52_viacoin,ingresscoin/ingresscoin,pinkevich/dash,keesdewit82/LasVegasCoin,inkvisit/sarmacoins,thelazier/dash,rsdevgun16e/energi,RibbitFROG/ribbitcoin,npccoin/npccoin,puticcoin/putic,PandaPayProject/PandaPay,supcoin/supcoin,alejandromgk/Lunar,dmrtsvetkov/flowercoin,sipa/elements,capitalDIGI/litecoin,xuyangcn/opalcoin,oklink-dev/bitcoin,capitalDIGI/DIGI-v-0-10-4,joulecoin/joulecoin,capitalDIGI/litecoin,pinkevich/dash,ColossusCoinXT/ColossusCoinXT,fullcoins/fullcoin,octocoin-project/octocoin,Mrs-X/Darknet,ticclassic/ic,mycointest/owncoin,zottejos/merelcoin,Thracky/monkeycoin,pstratem/elements,droark/elements,MazaCoin/mazacoin-new,benzmuircroft/REWIRE.io,worldbit/worldbit,RyanLucchese/energi,lakepay/lake,nmarley/dash,koharjidan/litecoin,KibiCoin/kibicoin,Mrs-X/Darknet,genavarov/brcoin,upgradeadvice/MUE-Src,kleetus/bitcoinxt,UdjinM6/dash,Petr-Economissa/gvidon,LIMXTEC/DMDv3,pelorusjack/BlockDX,dev1972/Satellitecoin,mycointest/owncoin,lakepay/lake,Darknet-Crypto/Darknet,puticcoin/putic,nmarley/dash,OmniLayer/omnicore,worldbit/worldbit,HeliumGas/helium,mapineda/litecoin,fussl/elements,UdjinM6/dash,NunoEdgarGub1/elements,crowning-/dash,joulecoin/joulecoin,inkvisit/sarmacoins,antcheck/antcoin,supcoin/supcoin,koharjidan/litecoin,ivansib/sibcoin,48thct2jtnf/P,mycointest/owncoin,Darknet-Crypto/Darknet,droark/elements,terracoin/terracoin,dgenr8/bitcoinxt,Bloom-Project/Bloom,sipa/elements,supcoin/supcoin,octocoin-project/octocoin,dev1972/Satellitecoin,Electronic-Gulden-Foundation/egulden,mikehearn/bitcoinxt,RibbitFROG/ribbitcoin,DynamicCoinOrg/DMC,upgradeadvice/MUE-Src,UdjinM6/dash,ivansib/sib16,florincoin/florincoin,Mrs-X/PIVX,PandaPayProject/PandaPay,PandaPayProject/PandaPay,aburan28/elements,willwray/dash,fullcoins/fullcoin,ingresscoin/ingresscoin,dev1972/Satellitecoin,ionomy/ion,thelazier/dash,m0gliE/fastcoin-cli,putinclassic/putic,apoelstra/elements,Vsync-project/Vsync,jmgilbert2/energi,xawksow/GroestlCoin,xuyangcn/opalcoin,lakepay/lake,fullcoins/fullcoin,oklink-dev/bitcoin,OstlerDev/florincoin,ArgonToken/ArgonToken,ColossusCoinXT/ColossusCoinXT,pelorusjack/BlockDX,fussl/elements,tropa/axecoin,genavarov/brcoin,jmgilbert2/energi,mockcoin/mockcoin,jtimon/elements,presstab/PIVX,npccoin/npccoin,xawksow/GroestlCoin,truthcoin/blocksize-market,midnight-miner/LasVegasCoin,mockcoin/mockcoin,zottejos/merelcoin,thelazier/dash,ptschip/bitcoinxt,cerebrus29301/crowncoin,alejandromgk/Lunar,OmniLayer/omnicore,xawksow/GroestlCoin,presstab/PIVX,rdqw/sscoin,BlockchainTechLLC/3dcoin,KibiCoin/kibicoin,slingcoin/sling-market,pascalguru/florincoin,ingresscoin/ingresscoin,Petr-Economissa/gvidon,Kenwhite23/litecoin,MonetaryUnit/MUE-Src,MazaCoin/mazacoin-new,BlockchainTechLLC/3dcoin,KibiCoin/kibicoin,mikehearn/bitcoinxt,ivansib/sibcoin,xuyangcn/opalcoin,aspirecoin/aspire,PandaPayProject/PandaPay,MonetaryUnit/MUE-Src,midnight-miner/LasVegasCoin,oklink-dev/bitcoin,putinclassic/putic,capitalDIGI/DIGI-v-0-10-4,dmrtsvetkov/flowercoin,sipa/elements,Vsync-project/Vsync,florincoin/florincoin,GwangJin/gwangmoney-core,puticcoin/putic,genavarov/brcoin,my-first/octocoin,benzmuircroft/REWIRE.io,CoinProjects/AmsterdamCoin-v4,sipa/elements,diggcoin/diggcoin,genavarov/ladacoin,lakepay/lake,octocoin-project/octocoin,ArgonToken/ArgonToken,dashpay/dash,48thct2jtnf/P,midnight-miner/LasVegasCoin,Mrs-X/Darknet,ediston/energi,benzmuircroft/REWIRE.io,schinzelh/dash,genavarov/brcoin,mockcoin/mockcoin,dmrtsvetkov/flowercoin,CoinProjects/AmsterdamCoin-v4,Petr-Economissa/gvidon,48thct2jtnf/P,aburan28/elements,puticcoin/putic,freelion93/mtucicoin,Kenwhite23/litecoin,LIMXTEC/DMDv3,gwillen/elements,Thracky/monkeycoin,Mrs-X/PIVX,midnight-miner/LasVegasCoin,aspirecoin/aspire,supcoin/supcoin,GwangJin/gwangmoney-core,my-first/octocoin,KibiCoin/kibicoin,MazaCoin/mazacoin-new,antcheck/antcoin,DMDcoin/Diamond,mapineda/litecoin,rsdevgun16e/energi,OmniLayer/omnicore,willwray/dash,mapineda/litecoin,MazaCoin/maza,xuyangcn/opalcoin,RibbitFROG/ribbitcoin,kleetus/bitcoinxt,inkvisit/sarmacoins,ivansib/sibcoin,antcheck/antcoin,biblepay/biblepay,rdqw/sscoin,DynamicCoinOrg/DMC,LIMXTEC/DMDv3,ahmedbodi/test2,m0gliE/fastcoin-cli,coinkeeper/2015-06-22_18-52_viacoin,RyanLucchese/energi,midnight-miner/LasVegasCoin,grumpydevelop/singularity,DynamicCoinOrg/DMC,npccoin/npccoin,Mrs-X/Darknet,ptschip/bitcoinxt,presstab/PIVX,BlockchainTechLLC/3dcoin,m0gliE/fastcoin-cli,ahmedbodi/test2,ediston/energi,MazaCoin/mazacoin-new,jtimon/elements,pascalguru/florincoin,slingcoin/sling-market,slingcoin/sling-market,diggcoin/diggcoin,ediston/energi,ahmedbodi/test2,tropa/axecoin,ivansib/sibcoin,aburan28/elements,gwillen/elements,mockcoin/mockcoin,upgradeadvice/MUE-Src,droark/elements,worldbit/worldbit,aspirecoin/aspire,Petr-Economissa/gvidon,cerebrus29301/crowncoin,biblepay/biblepay,projectinterzone/ITZ,my-first/octocoin,DMDcoin/Diamond,ingresscoin/ingresscoin,Bloom-Project/Bloom,grumpydevelop/singularity