X-Git-Url: https://git.novaco.in/?p=NovacoinLibrary.git;a=blobdiff_plain;f=Novacoin%2FCBlockStore.cs;h=6cd81dfb6b2ef4de1c6312a3c7ad2b3e42351278;hp=2299e15406f1adbbe78389f677639e0afdbbf073;hb=4370732bca42bcd668c0cb3997b9268f88ca863e;hpb=f02df773a836f8b3df12bd21fd418f7c17b77821 diff --git a/Novacoin/CBlockStore.cs b/Novacoin/CBlockStore.cs index 2299e15..6cd81df 100644 --- a/Novacoin/CBlockStore.cs +++ b/Novacoin/CBlockStore.cs @@ -677,13 +677,13 @@ namespace Novacoin // Add in sigops done by pay-to-script-hash inputs; // this is to prevent a "rogue miner" from creating // an incredibly-expensive-to-validate block. - nSigOps += tx.GetP2SHSigOpCount(inputs); + nSigOps += tx.GetP2SHSigOpCount(ref inputs); if (nSigOps > CBlock.nMaxSigOps) { return false; // too many sigops } - ulong nTxValueIn = tx.GetValueIn(inputs); + ulong nTxValueIn = tx.GetValueIn(ref inputs); ulong nTxValueOut = tx.nValueOut; nValueIn += nTxValueIn;