Skip to content

Commit

Permalink
disabling the type check till the fork point is established
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandraRoatis committed Feb 13, 2019
1 parent a08be49 commit b84bdcd
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package org.aion.zero.impl.valid;

import static org.aion.mcf.valid.TransactionTypeRule.isValidAVMTransactionType;
import static org.aion.mcf.valid.TransactionTypeRule.isValidFVMTransactionType;
// import static org.aion.mcf.valid.TransactionTypeRule.isValidAVMTransactionType;
// import static org.aion.mcf.valid.TransactionTypeRule.isValidFVMTransactionType;

/**
* Validator for the type field of transactions allowed by the network. The transaction types
Expand All @@ -21,8 +21,11 @@ public static void enableAvmCheck(boolean enableAVM) {
}

public static boolean isValid(byte type) {
/* TODO: re-enable when the fork point is established
// the type must be either valid for the FVM
// or for the AVM when the AVM is enabled
return isValidFVMTransactionType(type) || (avmEnabled && isValidAVMTransactionType(type));
*/
return true;
}
}

0 comments on commit b84bdcd

Please sign in to comment.