forked from Qortal/qortal
No need to check AT transactions in Block.areTransactionsValid()
This commit is contained in:
parent
8dbd8c4e65
commit
33010f82d8
@ -1026,6 +1026,10 @@ public class Block {
|
|||||||
for (Transaction transaction : this.getTransactions()) {
|
for (Transaction transaction : this.getTransactions()) {
|
||||||
TransactionData transactionData = transaction.getTransactionData();
|
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)
|
// GenesisTransactions are not allowed (GenesisBlock overrides isValid() to allow them)
|
||||||
if (transactionData.getType() == TransactionType.GENESIS || transactionData.getType() == TransactionType.ACCOUNT_FLAGS)
|
if (transactionData.getType() == TransactionType.GENESIS || transactionData.getType() == TransactionType.ACCOUNT_FLAGS)
|
||||||
return ValidationResult.GENESIS_TRANSACTIONS_INVALID;
|
return ValidationResult.GENESIS_TRANSACTIONS_INVALID;
|
||||||
|
Loading…
Reference in New Issue
Block a user