-
Notifications
You must be signed in to change notification settings - Fork 17
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
Updates/merge cuttlefish #1007
base: develop
Are you sure you want to change the base?
Updates/merge cuttlefish #1007
Conversation
bb451a1
to
5bd7685
Compare
5bd7685
to
50ccfea
Compare
Docker tags |
Quality Gate passedIssues Measures |
@@ -140,6 +140,10 @@ pub fn to_api_substate_id( | |||
SubstateType::BootLoaderModuleFieldKernelBoot, | |||
models::PartitionKind::Field, | |||
), | |||
TypedSubstateKey::BootLoader(TypedBootLoaderSubstateKey::BootLoaderField( | |||
BootLoaderField::TransactionValidationConfiguration, | |||
)) => todo!(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to confirm that we've got a good way to track all these todos. :)
@@ -711,7 +704,7 @@ pub fn to_api_costing_parameters( | |||
xrd_usd_price: to_api_decimal(&engine_costing_parameters.usd_price), | |||
xrd_storage_price: to_api_decimal(&engine_costing_parameters.state_storage_price), | |||
xrd_archive_storage_price: to_api_decimal(&engine_costing_parameters.archive_storage_price), | |||
tip_percentage: to_api_u16_as_i32(transaction_costing_parameters.tip_percentage), | |||
tip_percentage: tip_percentage_decimal.try_into().unwrap_or(i32::MAX), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we unwrap
?
@@ -217,11 +204,11 @@ impl From<MempoolAddError> for MempoolAddErrorJava { | |||
fn from(err: MempoolAddError) -> Self { | |||
match err { | |||
MempoolAddError::PriorityThresholdNotMet { | |||
min_tip_basis_points_required: min_tip_percentage_required, | |||
tip_basis_points: tip_percentage, | |||
} => MempoolAddErrorJava::PriorityThresholdNotMet { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor: remove these confusing renames?
} | ||
MempoolAddError::PriorityThresholdNotMet { | ||
min_tip_basis_points_required: min_tip_percentage_required, | ||
tip_basis_points: tip_percentage, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor: remove these confusing renames?
write!(f, "Priority Threshold not met. There is no known tip to guarantee mempool submission.") | ||
} | ||
Some(min_tip_percentage_required) => { | ||
write!(f, "Priority Threshold not met: tip is {tip_percentage} while min tip required {min_tip_percentage_required}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tip => basis point
.transactions | ||
.remove(0); | ||
let ProtocolUpdateTransactionDetails::FlashV1Transaction(flash) = validator_fee_fix; | ||
let ProtocolUpdateTransaction::FlashTransactionV1(flash) = validator_fee_fix else { | ||
panic!(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add a message here?
Summary
A PR to update the engine in the node to align with Cuttlefish.
This PR just gets the bottlenose node compiling/syncing with the Cuttlefish engine code. It does not yet implement any explicit cuttlefish functionality in the node, and there are a number of todo!s left in which will be fixed in later work.
Testing
The testing strategy is that:
(Need to check that our backwards compatibility test suite works 👍)