Skip to content

Commit

Permalink
Merge pull request #805 from aionnetwork/fvm-tx-types
Browse files Browse the repository at this point in the history
Allowing 0 as a transaction type for the FVM
  • Loading branch information
AlexandraRoatis authored Feb 5, 2019
2 parents 877e4e8 + d9d391a commit c19de42
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions modAionBase/src/org/aion/base/vm/VirtualMachineSpecs.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
public final class VirtualMachineSpecs {

public static final byte AVM_CREATE_CODE = 0x0f;
public static final byte FVM_ALLOWED_TX_TYPE = 0x00;
public static final byte FVM_DEFAULT_TX_TYPE = 0x01;
}
3 changes: 2 additions & 1 deletion modMcf/src/org/aion/mcf/valid/TransactionTypeRule.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
public class TransactionTypeRule {

public static boolean isValidFVMTransactionType(byte type) {
return type == VirtualMachineSpecs.FVM_DEFAULT_TX_TYPE;
return type == VirtualMachineSpecs.FVM_DEFAULT_TX_TYPE
|| type == VirtualMachineSpecs.FVM_ALLOWED_TX_TYPE;
}

public static boolean isValidAVMTransactionType(byte type) {
Expand Down

0 comments on commit c19de42

Please sign in to comment.