-
Notifications
You must be signed in to change notification settings - Fork 34
[DRAFT] chore(framework): Remove the Bridge package and all its functionalities #6863
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
base: develop
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 4 Skipped Deployments
|
@@ -1540,24 +1534,6 @@ pub fn generate_genesis_system_object( | |||
vec![], | |||
)?; | |||
|
|||
if protocol_config.enable_bridge() { |
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.
Comment for other reviewers:
- we are safe when removing this here because in both Mainnet and Testnet genesis processes
enable_bridge
was false
@@ -47,7 +47,6 @@ impl From<ProtocolConfigValue> for IotaProtocolConfigValue { | |||
ProtocolConfigValue::u16(y) => IotaProtocolConfigValue::U16(y), | |||
ProtocolConfigValue::u32(y) => IotaProtocolConfigValue::U32(y), | |||
ProtocolConfigValue::u64(x) => IotaProtocolConfigValue::U64(x), | |||
ProtocolConfigValue::bool(z) => IotaProtocolConfigValue::Bool(z), |
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.
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.
Done
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.
Reverted
@@ -161,10 +161,6 @@ struct FeatureFlags { | |||
#[serde(skip_serializing_if = "is_false")] | |||
enable_jwk_consensus_updates: bool, | |||
|
|||
// Enable bridge protocol | |||
#[serde(skip_serializing_if = "is_false")] | |||
bridge: bool, |
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.
@muXxer @alexsporn is it safe to be completely removed even though it is not used anymore?
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.
AFAIK we can remove protocol feature flags without problems if the snapshot files don't change. And the bridge was never enabled, so the snapshot files should be the same.
@@ -632,16 +632,6 @@ impl From<crate::transaction::EndOfEpochTransactionKind> for EndOfEpochTransacti | |||
.authenticator_obj_initial_shared_version | |||
.value(), | |||
}), | |||
crate::transaction::EndOfEpochTransactionKind::BridgeStateCreate(chain_identifier) => { |
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.
TODO: update the sdk2 repo once this PR is merged
EndOfEpochTransactionKind::BridgeStateCreate(chain_id) => { | ||
assert!(protocol_config.enable_bridge()); | ||
builder = setup_bridge_create(builder, chain_id) | ||
} | ||
EndOfEpochTransactionKind::BridgeCommitteeInit(bridge_shared_version) => { | ||
assert!(protocol_config.enable_bridge()); | ||
assert!(protocol_config.should_try_to_finalize_bridge_committee()); | ||
builder = setup_bridge_committee_update(builder, bridge_shared_version) | ||
} |
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.
Comment for other reviewers:
- should be safe to completely remove this without adding a new cut because this transaction Kind was never executed in both Mainnet and Testnet.
This reverts commit 161fa52.
…e-6847-remove-bridge
@@ -161,10 +161,6 @@ struct FeatureFlags { | |||
#[serde(skip_serializing_if = "is_false")] | |||
enable_jwk_consensus_updates: bool, | |||
|
|||
// Enable bridge protocol | |||
#[serde(skip_serializing_if = "is_false")] | |||
bridge: bool, |
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.
AFAIK we can remove protocol feature flags without problems if the snapshot files don't change. And the bridge was never enabled, so the snapshot files should be the same.
/// Whether to try to form bridge committee | ||
// Note: this is not a feature flag because we want to distinguish between | ||
// `None` and `Some(false)`, as committee was already finalized on Testnet. | ||
bridge_should_try_to_finalize_committee: Option<bool>, |
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.
I'm not 100% sure we can remove this one.... the snapshot files seem to change. Is this allowed?
This reverts commit 30bf4a2.
[run-ci]
Description of change
Please write a summary of your changes and why you made them.
Links to any relevant issues
fixes #6847
Type of change
Choose a type of change, and delete any options that are not relevant.
How the change has been tested
Describe the tests that you ran to verify your changes.
Make sure to provide instructions for the maintainer as well as any relevant configurations.
Infrastructure QA (only required for crates that are maintained by @iotaledger/infrastructure)
Change checklist
Tick the boxes that are relevant to your changes, and delete any items that are not.
Release Notes