BitSharper.Block.CheckTransactions C# (CSharp) Méthode

CheckTransactions() private méthode

private CheckTransactions ( ) : void
Résultat void
        private void CheckTransactions()
        {
            // The first transaction in a block must always be a coinbase transaction.
            if (!Transactions[0].IsCoinBase)
                throw new VerificationException("First tx is not coinbase");
            // The rest must not be.
            for (var i = 1; i < Transactions.Count; i++)
            {
                if (Transactions[i].IsCoinBase)
                    throw new VerificationException("TX " + i + " is coinbase when it should not be.");
            }
        }