mirror of
https://github.com/Qortal/qortal.git
synced 2025-07-22 20:26:50 +00:00
No need to check AT transactions in Block.areTransactionsValid()
This commit is contained in:
@@ -1026,6 +1026,10 @@ public class Block {
|
||||
for (Transaction transaction : this.getTransactions()) {
|
||||
TransactionData transactionData = transaction.getTransactionData();
|
||||
|
||||
// Skip AT transactions as they are covered by prior call to Block.areAtsValid()
|
||||
if (transactionData.getType() == TransactionType.AT)
|
||||
continue;
|
||||
|
||||
// GenesisTransactions are not allowed (GenesisBlock overrides isValid() to allow them)
|
||||
if (transactionData.getType() == TransactionType.GENESIS || transactionData.getType() == TransactionType.ACCOUNT_FLAGS)
|
||||
return ValidationResult.GENESIS_TRANSACTIONS_INVALID;
|
||||
|
Reference in New Issue
Block a user