Further DoS prevention: Verify signatures last
Further DoS prevention: Verify signatures last

Loop over all inputs doing inexpensive validity checks first,
and then loop over them a second time doing expensive signature
checks. This helps prevent possible CPU exhaustion attacks
where an attacker tries to make a victim waste time checking
signatures for invalid transactions.

som4paul/BolieC,stronghands/stronghands,glv2/peerunity,CoinBlack/blackcoin,jlay11/sharecoin,rat4/blackcoin,som4paul/BolieC,Someguy123/novafoil,effectsToCause/vericoin,gfneto/Peershares,ghostlander/Orbitcoin,lateminer/DopeCoinGold,5mil/SuperTurboStake,ppcoin/ppcoin,CoinGame/BCEShadow,jyap808/jumbucks,FuzzyBearBTC/Peershares-1,lentza/SuperTurboStake,som4paul/BolieC,glv2/peerunity,d5000/ppcoin,redfish64/nomiccoin,dooglus/clams,FuzzyBearBTC/Peershares-1,Magicking/neucoin,coinkeeper/2015-06-22_18-45_peercoin,Peerapps/ppcoin,effectsToCause/vericoin,elambert2014/cbx2,Peerunity/Peerunity,glv2/peerunity,thodg/ppcoin,CoinGame/NuShadowNet,xranby/blackcoin,byncoin-project/byncoin,LanaCoin/lanacoin,bitgrowchain/bitgrow,internaut-me/ppcoin,jyap808/jumbucks,iadix/iadixcoin,iadix/iadixcoin,Ziftr/Peerunity,phorensic/yacoin,TheoremCrypto/TheoremCoin,vectorcoindev/Vector,peerdb/cors,BlueMeanie/PeerShares,valorbit/valorbit,ya4-old-c-coder/yacoin,bitgrowchain/bitgrow,prodigal-son/blackcoin,CoinBlack/bitcoin,CoinBlack/blackcoin,lateminer/DopeCoinGold,byncoin-project/byncoin,ya4-old-c-coder/yacoin,LanaCoin/lanacoin,nochowderforyou/clams,FuzzyBearBTC/peercoin,sigmike/peercoin,thunderrabbit/clams,landcoin-ldc/landcoin,SproutsEx/SproutsExtreme,pinkmagicdev/SwagBucks,TurboStake/TurboStake,Magicking/neucoin,iceinsidefire/peershare-edit,5mil/SuperTurboStake,IOCoin/DIONS,thunderrabbit/clams,penek/novacoin,fsb4000/novacoin,FuzzyBearBTC/Peershares-1,peerdb/cors,blackcoinhelp/blackcoin,AquariusNetwork/ARCO,FuzzyBearBTC/Peershares2,landcoin-ldc/landcoin,ALEXIUMCOIN/alexium,DigitalPandacoin/pandacoin,Ziftr/ppcoin,TheoremCrypto/TheoremCoin,vizidrixfork/Peershares,Action-Committee/Spaceballz,BlueMeanie/PeerShares,phorensic/yacoin,ghostlander/Testcoin,ppcoin/ppcoin,FuzzyBearBTC/Peershares,Peershares/Peershares,palm12341/jnc,CoinBlack/bitcoin,vectorcoindev/Vector,Kefkius/clams,valorbit/valorbit-oss,penek/novacoin,peercoin/peercoin,MoMoneyMonetarism/ppcoin,MoMoneyMonetarism/ppcoin,ForceMajeure/BitPenny-Client,TurboStake/TurboStake,byncoin-project/byncoin,benzhi888/renminbi,gades/novacoin,peerdb/cors,redfish64/nomiccoin,Peerapps/ppcoin,CoinBlack/bitcoin,elambert2014/novacoin,IOCoin/DIONS,xranby/blackcoin,DigitalPandacoin/pandacoin,som4paul/BolieC,palm12341/jnc,jyap808/jumbucks,neureal/noocoin,stamhe/ppcoin,Ziftr/Peerunity,elambert2014/novacoin,Peershares/Peershares,5mil/SuperTurboStake,CoinGame/BCEShadowNet,BlueMeanie/PeerShares,Jheguy2/Mercury,thunderrabbit/clams,ghostlander/Testcoin,Someguy123/novafoil,Action-Committee/Spaceballz,FuzzyBearBTC/Fuzzyshares,neureal/noocoin,Whitecoin-org/Whitecoin,CoinGame/NuShadowNet,DigitalPandacoin/pandacoin,pocopoco/yacoin,elcrypto/Pulse,yacoin/yacoin,nochowderforyou/clams,AquariusNetwork/ARCOv2,benzhi888/renminbi,Magicking/neucoin,ghostlander/Testcoin,prodigal-son/blackcoin,GeopaymeEE/e-goldcoin,ya4-old-c-coder/yacoin,FuzzyBearBTC/Fuzzyshares,iceinsidefire/peershare-edit,lordsajan/erupee,iadix/iadixcoin,penek/novacoin,Jheguy2/Mercury,TheSeven/ppcoin,FuzzyBearBTC/peercoin,lordsajan/erupee,daeMOn63/Peershares,elambert2014/novacoin,Whitecoin-org/Whitecoin,CoinGame/BCEShadow,dooglus/clams,neureal/noocoin,valorbit/valorbit,dooglus/clams,robvanmieghem/clams,MoMoneyMonetarism/ppcoin,sigmike/peercoin,thodg/ppcoin,gfneto/Peershares,FuzzyBearBTC/peercoin,TheoremCrypto/TheoremCoin,redfish64/nomiccoin,IOCoin/DIONS,BlueMeanie/PeerShares,phorensic/yacoin,MOIN/moin,elambert2014/cbx2,Rimbit/Wallets,IOCoin/DIONS,ForceMajeure/BitPenny-Client,5mil/SuperTurboStake,AquariusNetwork/ARCO,yacoin/yacoin,jlay11/sharecoin,elambert2014/cbx2,FuzzyBearBTC/Peerunity,daeMOn63/Peershares,etercoin/etercoin,iadix/iadixcoin,FuzzyBearBTC/Peershares2,iceinsidefire/peershare-edit,CoinBlack/blackcoin,SproutsEx/SproutsExtreme,gades/novacoin,valorbit/valorbit-oss,byncoin-project/byncoin,Kefkius/clams,CoinBlack/bitcoin,d5000/ppcoin,AquariusNetwork/ARCOv2,VsyncCrypto/Vsync,novacoin-project/novacoin,gorgoy/novacoin,IOCoin/iocoin,novacoin-project/novacoin,NeuCoin/neucoin,IOCoin/DIONS,coinkeeper/2015-06-22_18-45_peercoin,LanaCoin/lanacoin,palm12341/jnc,elambert2014/novacoin,Jheguy2/Mercury,greencoin-dev/GreenCoinV2,gfneto/Peershares,IOCoin/DIONS,d5000/ppcoin,jyap808/jumbucks,slimcoin-project/Slimcoin,GeopaymeEE/e-goldcoin,ALEXIUMCOIN/alexium,CoinBlack/blackcoin,DigitalPandacoin/pandacoin,AquariusNetwork/ARCOv2,bitgrowchain/bitgrow,thunderrabbit/clams,stamhe/novacoin,DigitalPandacoin/pandacoin,redfish64/nomiccoin,yacoin/yacoin,Jheguy2/Mercury,senadj/yacoin,CoinGame/BCEShadow,FuzzyBearBTC/Peershares,TurboStake/TurboStake,okcashpro/okcash,NeuCoin/neucoin,ForceMajeure/BitPenny-Client,gorgoy/novacoin,Stakemaker/OMFGcoin,blackcoinhelp/blackcoin,greencoin-dev/GreenCoinV2,peerdb/cors,jlay11/sharecoin,internaut-me/ppcoin,pinkmagicdev/SwagBucks,novacoin-project/novacoin,ALEXIUMCOIN/alexium,Kefkius/clams,thunderrabbit/clams,thodg/ppcoin,Ziftr/ppcoin,TheSeven/ppcoin,IOCoin/iocoin,vizidrixfork/Peershares,elcrypto/Pulse,5mil/Bolt,Action-Committee/Spaceballz,MOIN/moin,FuzzyBearBTC/Peerunity,greencoin-dev/GreenCoinV2,shadowproject/shadow,FuzzyBearBTC/Peershares,CoinGame/BCEShadow,prodigal-son/blackcoin,FuzzyBearBTC/Peerunity,jlay11/sharecoin,VsyncCrypto/Vsync,peerdb/cors,iceinsidefire/peershare-edit,dopecoin-dev/DopeCoinGold,gorgoy/novacoin,nochowderforyou/clams,AquariusNetwork/ARCOv2,senadj/yacoin,daeMOn63/Peershares,nochowderforyou/clams,Crypto-Currency/BitBar,elcrypto/Pulse,peercoin/peercoin,stronghands/stronghands,vizidrixfork/Peershares,valorbit/valorbit,fsb4000/novacoin,lentza/SuperTurboStake,slimcoin-project/Slimcoin,Ziftr/ppcoin,elambert2014/novacoin,Magicking/neucoin,prodigal-son/blackcoin,shadowproject/shadow,FuzzyBearBTC/Peershares2,okcashpro/okcash,novacoin-project/novacoin,sigmike/peercoin,CoinGame/BCEShadowNet,Ziftr/ppcoin,greencoin-dev/GreenCoinV2,stamhe/novacoin,jyap808/jumbucks,jlay11/sharecoin,CoinGame/NuShadowNet,ppcoin/ppcoin,byncoin-project/byncoin,Rimbit/Wallets,CoinGame/BCEShadowNet,FuzzyBearBTC/Fuzzyshares,IOCoin/iocoin,MOIN/moin,redfish64/nomiccoin,BeirdoMud/MudCoin,stamhe/ppcoin,gades/novacoin,Crypto-Currency/BitBar,stamhe/ppcoin,Whitecoin-org/Whitecoin,Stakemaker/OMFGcoin,VsyncCrypto/Vsync,stamhe/novacoin,5mil/Bolt,Peerunity/Peerunity,TurboStake/TurboStake,lordsajan/erupee,som4paul/BolieC,MoMoneyMonetarism/ppcoin,benzhi888/renminbi,jashandeep-sohi/ppcoin,Crypto-Currency/BitBar,5mil/Bolt,GeopaymeEE/e-goldcoin,lateminer/DopeCoinGold,FuzzyBearBTC/Peerunity,jashandeep-sohi/ppcoin,okcashpro/okcash,CoinGame/BCEShadow,effectsToCause/vericoin,internaut-me/ppcoin,d5000/ppcoin,ghostlander/Testcoin,penek/novacoin,landcoin-ldc/landcoin,Peerapps/ppcoin,FuzzyBearBTC/Fuzzyshares,shadowproject/shadow,penek/novacoin,robvanmieghem/clams,slimcoin-project/Slimcoin,MoMoneyMonetarism/ppcoin,lordsajan/erupee,vectorcoindev/Vector,Someguy123/novafoil,ghostlander/Orbitcoin,pocopoco/yacoin,AquariusNetwork/ARCO,sproutcoin/sprouts,Rimbit/Wallets,FuzzyBearBTC/Peershares2,lordsajan/erupee,stronghands/stronghands,Stakemaker/OMFGcoin,fsb4000/novacoin,senadj/yacoin,effectsToCause/vericoin,Peerapps/ppcoin,ALEXIUMCOIN/alexium,okcashpro/okcash,CoinBlack/bitcoin,ya4-old-c-coder/yacoin,AquariusNetwork/ARCOv2,pinkmagicdev/SwagBucks,effectsToCause/vericoin,TheSeven/ppcoin,SproutsEx/SproutsExtreme,Crypto-Currency/BitBar,lateminer/DopeCoinGold,neureal/noocoin,MOIN/moin,gades/novacoin,CoinGame/NuShadowNet,valorbit/valorbit,peerdb/cors,jashandeep-sohi/ppcoin,blackcoinhelp/blackcoin,Peerunity/Peerunity,jlay11/sharecoin,benzhi888/renminbi,shadowproject/shadow,Peerunity/Peerunity,xranby/blackcoin,BeirdoMud/MudCoin,Kefkius/clams,Rimbit/Wallets,GeopaymeEE/e-goldcoin,yacoin/yacoin,MOIN/moin,SproutsEx/SproutsExtreme,ForceMajeure/BitPenny-Client,NeuCoin/neucoin,TheSeven/ppcoin,iadix/iadixcoin,VsyncCrypto/Vsync,ghostlander/Orbitcoin,sproutcoin/sprouts,pocopoco/yacoin,gorgoy/novacoin,slimcoin-project/Slimcoin,rat4/blackcoin,etercoin/etercoin,Action-Committee/Spaceballz,ya4-old-c-coder/yacoin,senadj/yacoin,fsb4000/novacoin,ghostlander/Orbitcoin,prodigal-son/blackcoin,penek/novacoin,TheoremCrypto/TheoremCoin,yacoin/yacoin,benzhi888/renminbi,IOCoin/iocoin,jashandeep-sohi/ppcoin,peercoin/peercoin,coinkeeper/2015-06-22_18-45_peercoin,lordsajan/erupee,pinkmagicdev/SwagBucks,vizidrixfork/Peershares,ppcoin/ppcoin,stronghands/stronghands,Someguy123/novafoil,TheSeven/ppcoin,snakie/ppcoin,5mil/Bolt,Peershares/Peershares,VsyncCrypto/Vsync,iadix/iadixcoin,FuzzyBearBTC/Peershares-1,LanaCoin/lanacoin,Stakemaker/OMFGcoin,CoinGame/BCEShadowNet,dopecoin-dev/DopeCoinGold,peercoin/peercoin,blackcoinhelp/blackcoin,iadix/iadixcoin,blackcoinhelp/blackcoin,vectorcoindev/Vector,dopecoin-dev/DopeCoinGold,palm12341/jnc,etercoin/etercoin,rat4/blackcoin,valorbit/valorbit,slimcoin-project/Slimcoin,sproutcoin/sprouts,snakie/ppcoin,IOCoin/DIONS,Peershares/Peershares,AquariusNetwork/ARCO,sproutcoin/sprouts,slimcoin-project/Slimcoin,GeopaymeEE/e-goldcoin,peercoin/peercoin,CoinGame/NuShadowNet,rat4/blackcoin,elcrypto/Pulse,AquariusNetwork/ARCO,Kefkius/clams,iadix/iadixcoin,iadix/iadixcoin,ghostlander/Orbitcoin,redfish64/nomiccoin,valorbit/valorbit-oss,FuzzyBearBTC/peercoin,iadix/iadixcoin,FuzzyBearBTC/Peershares2,peercoin/peercoin,sigmike/peercoin,stamhe/novacoin,pocopoco/yacoin,coinkeeper/2015-06-22_18-45_peercoin,pocopoco/yacoin,snakie/ppcoin,lentza/SuperTurboStake,FuzzyBearBTC/Peershares-1,dooglus/clams,FuzzyBearBTC/Peershares,Jheguy2/Mercury,pinkmagicdev/SwagBucks,okcashpro/okcash,shadowproject/shadow,phorensic/yacoin,Ziftr/Peerunity,gorgoy/novacoin,vectorcoindev/Vector,CoinBlack/blackcoin,glv2/peerunity,etercoin/etercoin,IOCoin/DIONS,novacoin-project/novacoin,thodg/ppcoin,FuzzyBearBTC/Peershares,sigmike/peercoin,MOIN/moin,CoinBlack/bitcoin,etercoin/etercoin,snakie/ppcoin,dopecoin-dev/DopeCoinGold,robvanmieghem/clams,LanaCoin/lanacoin,ALEXIUMCOIN/alexium,novacoin-project/novacoin,lentza/SuperTurboStake,nochowderforyou/clams,senadj/yacoin,Whitecoin-org/Whitecoin,lentza/SuperTurboStake,Ziftr/ppcoin,lateminer/DopeCoinGold,rat4/blackcoin,daeMOn63/Peershares,fsb4000/novacoin,byncoin-project/byncoin,thodg/ppcoin,landcoin-ldc/landcoin,dooglus/clams,okcashpro/okcash,BlueMeanie/PeerShares,BeirdoMud/MudCoin,dopecoin-dev/DopeCoinGold,robvanmieghem/clams,elambert2014/cbx2,lordsajan/erupee,valorbit/valorbit-oss,greencoin-dev/GreenCoinV2,valorbit/valorbit-oss,Ziftr/Peerunity,stamhe/ppcoin,Whitecoin-org/Whitecoin,elambert2014/cbx2,daeMOn63/Peershares,DigitalPandacoin/pandacoin,TheoremCrypto/TheoremCoin,landcoin-ldc/landcoin,NeuCoin/neucoin,gades/novacoin,gades/novacoin,stamhe/novacoin,robvanmieghem/clams,elambert2014/novacoin,iadix/iadixcoin,fsb4000/novacoin,gfneto/Peershares,CoinGame/BCEShadowNet,shadowproject/shadow,BeirdoMud/MudCoin,xranby/blackcoin,lordsajan/erupee,palm12341/jnc,bitgrowchain/bitgrow,internaut-me/ppcoin,Rimbit/Wallets,IOCoin/iocoin,phorensic/yacoin