Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allowing 0 as a transaction type for the FVM #805

Merged
merged 1 commit into from
Feb 5, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions modAionBase/src/org/aion/base/vm/VirtualMachineSpecs.java
Original file line number Diff line number Diff line change
@@ -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
@@ -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) {