Skip to content
Open
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
35 changes: 16 additions & 19 deletions crates/iota-types/src/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -620,12 +620,11 @@ impl EndOfEpochTransactionKind {
"selecting committee only among validators supporting the protocol version not supported".to_string(),
));
}
// This has to be uncommented before merging to develop
// if config.score_based_rewards() {
// return Err(UserInputError::Unsupported(
// "score based rewards enabled and
// required".to_string(), ));
// }
if config.score_based_rewards() {
return Err(UserInputError::Unsupported(
"score based rewards should not be enabled".to_string(),
));
}
}
Self::ChangeEpochV2(_) => {
if !config.protocol_defined_base_fee() {
Expand All @@ -638,12 +637,11 @@ impl EndOfEpochTransactionKind {
"selecting committee only among validators supporting the protocol version not supported".to_string(),
));
}
// This has to be uncommented before merging to develop
// if config.score_based_rewards() {
// return Err(UserInputError::Unsupported(
// "score based rewards enabled and
// required".to_string(), ));
// }
if config.score_based_rewards() {
return Err(UserInputError::Unsupported(
"score based rewards should not be enabled".to_string(),
));
}
}
Self::ChangeEpochV3(_) => {
if !config.protocol_defined_base_fee() {
Expand All @@ -656,12 +654,11 @@ impl EndOfEpochTransactionKind {
"selecting committee only among validators supporting the protocol version required".to_string(),
));
}
// This has to be uncommented before merging to develop
// if config.score_based_rewards() {
// return Err(UserInputError::Unsupported(
// "score based rewards enabled and
// required".to_string(), ));
// }
if config.score_based_rewards() {
return Err(UserInputError::Unsupported(
"score based rewards should not be enabled".to_string(),
));
}
}
Self::ChangeEpochV4(_) => {
if !config.protocol_defined_base_fee() {
Expand All @@ -676,7 +673,7 @@ impl EndOfEpochTransactionKind {
}
if !config.score_based_rewards() {
return Err(UserInputError::Unsupported(
"score based rewards not enabled".to_string(),
"score based rewards should be enabled".to_string(),
));
}
}
Expand Down
Loading