Skip to content
Merged
Show file tree
Hide file tree
Changes from 61 commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
d8e2510
refactor(iota-framework/iota-system): Remove multiple versions from t…
jkrvivian Oct 9, 2024
23a5d0f
chore(core-node)!: remove deprecated db tables (#3142)
muXxer Oct 14, 2024
a92db11
chore(core-node)!: remove unused `EpochFlags` + special `ExecutedInEp…
muXxer Oct 14, 2024
619c048
refactor(iota-types/authenticator-state-update): Rename `Authenticato…
muXxer Oct 21, 2024
67398fc
remove(iota-core): Remove PendingCheckpoint v1
daria305 Oct 15, 2024
ba41daf
refactor(iota-core): Rename PendingCheckpointV2 and related methods t…
daria305 Oct 15, 2024
da1c307
remove(iota-core): Remove depreciated tables assigned_shared_object_v…
daria305 Oct 16, 2024
f3fd040
remove(iota-core): Make sure randomness_state is always enabled
daria305 Oct 16, 2024
efe2dd3
refactor(iota-core): Rename assigned_shared_object_versions_v2 to ass…
daria305 Oct 16, 2024
e9fe495
refactor(core-node): Remove `StateAccumulatorV1`and rename `StateAccu…
bingyanglin Oct 23, 2024
e351733
refactor(narwhal-types): Clean narwhal type versioning (#3284)
bingyanglin Oct 23, 2024
866ee63
refactor(iota-e2e-tests): Rename data types (#3309)
bingyanglin Oct 23, 2024
1364199
Merge branch 'develop' into core-node/feat/remove-multiple-types
alexsporn Oct 23, 2024
0999c01
chore(core): removed epoch_store from the StateAccumulator initializers
alexsporn Oct 23, 2024
9e17231
chore(narwhal-types): removed comment
alexsporn Oct 23, 2024
909e969
Merge branch 'develop' of github.com:iotaledger/iota into core-node/f…
alexsporn Oct 23, 2024
b3a5b28
Merge branch 'develop' into core-node/feat/remove-multiple-types
bingyanglin Oct 23, 2024
74b30c2
refactor(iota-types/iota-system-state): Make IotaSystemStateInnerV2 t…
jkrvivian Oct 4, 2024
bdaed82
refactor(iota-types/iota-system-state): Rename IotaSystemStateInnerV1…
jkrvivian Oct 9, 2024
ea08c52
refactor(iota-types/iota-system-state): Add the `PoolTokenExchangeRat…
jkrvivian Oct 9, 2024
9f1e0ee
refactor(iota-types/iota-system-state): Rename ValidatorWrapper to Va…
jkrvivian Oct 9, 2024
f7bc549
refactor(iota-types/iota-system-state): Rename UnverifiedValidatorOpe…
jkrvivian Oct 9, 2024
a180350
doc(iota-types/iota-system-state): Fix wrong type in comments
jkrvivian Oct 9, 2024
23da4c9
refactor: Format with clippy and rustfmt
jkrvivian Oct 14, 2024
a6b1694
refactor(iota-framework/iota-system): Rename ValidatorWrapper to Vali…
jkrvivian Oct 15, 2024
c1f9606
chore(iota-types): Add the issue to the TODO in comment
jkrvivian Oct 15, 2024
14308e8
refactor(iota-types/timelock): Wrap TimelockedStakedIotaV1 with enum …
jkrvivian Oct 15, 2024
984e604
refactor(iota-types): Wrap StakedIotaV1 with enum StakedIota
jkrvivian Oct 15, 2024
d660f40
feat(iota-framework): Rebuild binary files and snapshots
jkrvivian Oct 23, 2024
fc3de33
refactor(iota-types): Rename SimTestIotaSystemStateInner structures
jkrvivian Oct 23, 2024
0ed0c63
chore(iota-types): Format codes
jkrvivian Oct 23, 2024
6726530
Revert "refactor(iota-types): Wrap StakedIotaV1 with enum StakedIota"
miker83z Oct 23, 2024
0c46c60
Revert "refactor(iota-types/timelock): Wrap TimelockedStakedIotaV1 wi…
miker83z Oct 23, 2024
accd6a3
refactor(iota-framework): remove version from StakedIota and Timelock…
miker83z Oct 23, 2024
ae76ef3
fix(iota-framework): update framework snapshots
miker83z Oct 23, 2024
8854c10
refactor(iota-types/events):rename SystemEpochInfoEvent to V1
miker83z Oct 23, 2024
e6e0a49
refactor(iota-types): remove version from PoolTokenExchangeRate
miker83z Oct 23, 2024
5f4eb1c
fix(iota-framework): update framework snapshots second time
miker83z Oct 23, 2024
318f422
chore: fix comments mentioning StakingPool move type
miker83z Oct 23, 2024
749a356
chore: fix comments mentioning SystemEpochInfoEvent move type
miker83z Oct 23, 2024
696401d
fix(iota-graphql-rpc): schema)
miker83z Oct 24, 2024
a958d52
fix(iota-graphql-e2e-test): update baselines + fix staked_iota.move
miker83z Oct 24, 2024
5668eab
Merge pull request #3603 from iotaledger/core-node/remove-rust-old-ty…
miker83z Oct 24, 2024
c29dd1f
Merge pull request #3168 from iotaledger/core-node/remove-rust-old-types
miker83z Oct 24, 2024
b77ff2e
Merge branch 'develop' into core-node/feat/remove-multiple-types
miker83z Oct 24, 2024
e2a324d
fix(framework): after merge
miker83z Oct 24, 2024
4ae832a
fix(iota-framework-snapshot): update snapshot and manifest
miker83z Oct 24, 2024
c4e9282
refactor(iota-core): Rename PendingCheckpoint to PendingCheckpointV1
daria305 Oct 24, 2024
158f2fe
refactor(iota-core): Remove assert as randomness config is already re…
daria305 Oct 24, 2024
e5b09e0
fix(iota-graphql-e2e-test): update baselines
miker83z Oct 24, 2024
b8341a7
Merge pull request #3349 from iotaledger/core-node/multi-version-pend…
daria305 Oct 24, 2024
e442ae8
fix(iota-swarm-config): test baseline
miker83z Oct 24, 2024
de14819
feat(iota-open-rpc, sdk): Update spec and typescript types
jkrvivian Oct 24, 2024
e1906ac
refactor(iota-graphql-rpc): Remove version of AuthenticatorStateUpdat…
jkrvivian Oct 24, 2024
1c50f8f
refactor(iota-types): Rename new_v1() of ExecuteTransactionRequestV1 …
jkrvivian Oct 24, 2024
87b9485
refactor(iota-swarm-config): Rename StateAccumulatorV1EnabledCallback…
jkrvivian Oct 24, 2024
58a796a
chores(iota-graphql-rpc): Update schema
jkrvivian Oct 24, 2024
8acc807
fix(iota-graphql-rpc): test snapshot
miker83z Oct 24, 2024
11fa65a
fix(iota-core): update staged iota format
miker83z Oct 24, 2024
d4ff63c
fix(msim): IotaSystemState matches + remove dead code
miker83z Oct 24, 2024
7d2c562
fix(iota-genesis-builder): Add clippy::infallible_destructuring_match…
jkrvivian Oct 25, 2024
ceac073
chore(sdk): revert changes
miker83z Oct 25, 2024
7335792
Merge branch 'develop' into core-node/feat/remove-multiple-types
miker83z Oct 25, 2024
79d2e33
fix(iota-graphql-e2e-tests): update baselines
miker83z Oct 25, 2024
d5fdd6e
fix(iota-framework-snapshot): update manifest
miker83z Oct 25, 2024
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
75 changes: 74 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/iota-benchmark/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ impl ValidatorProxy for LocalValidatorAggregatorProxy {
let ticket = self
.qd
.submit_transaction(
iota_types::quorum_driver_types::ExecuteTransactionRequestV3 {
iota_types::quorum_driver_types::ExecuteTransactionRequestV1 {
transaction: tx.clone(),
include_events: true,
include_input_objects: false,
Expand Down
2 changes: 1 addition & 1 deletion crates/iota-benchmark/tests/simtest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ mod test {
..Default::default()
})
.with_submit_delay_step_override_millis(3000)
.with_state_accumulator_v2_enabled_callback(Arc::new(|idx| idx % 2 == 0))
.with_state_accumulator_callback(Arc::new(|idx| idx % 2 == 0))
.build()
.await
.into();
Expand Down
5 changes: 0 additions & 5 deletions crates/iota-config/src/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,11 +242,6 @@ pub struct NodeConfig {
#[serde(default)]
pub execution_cache: ExecutionCacheConfig,

// step 1 in removing the old state accumulator
#[serde(skip)]
#[serde(default = "bool_true")]
pub state_accumulator_v2: bool,

#[serde(default = "bool_true")]
pub enable_validator_tx_finalizer: bool,
}
Expand Down
42 changes: 6 additions & 36 deletions crates/iota-core/src/authority.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ use iota_types::{
TransactionEvents, VerifiedCertifiedTransactionEffects, VerifiedSignedTransactionEffects,
},
error::{ExecutionError, IotaError, IotaResult, UserInputError},
event::{Event, EventID, SystemEpochInfoEvent},
event::{Event, EventID, SystemEpochInfoEventV1},
executable_transaction::VerifiedExecutableTransaction,
execution_config_utils::to_binary_config,
execution_status::ExecutionStatus,
Expand Down Expand Up @@ -1395,7 +1395,7 @@ impl AuthorityState {
)
.await?;

if let TransactionKind::AuthenticatorStateUpdate(auth_state) =
if let TransactionKind::AuthenticatorStateUpdateV1(auth_state) =
certificate.data().transaction_data().kind()
{
if let Some(err) = &execution_error_opt {
Expand Down Expand Up @@ -1459,25 +1459,6 @@ impl AuthorityState {

let output_keys = inner_temporary_store.get_output_keys(effects);

// Only need to sign effects if we are a validator, and if the
// executed_in_epoch_table is not yet enabled. TODO: once
// executed_in_epoch_table is enabled everywhere, we can remove the code below
// entirely.
let should_sign_effects =
self.is_validator(epoch_store) && !epoch_store.executed_in_epoch_table_enabled();

let effects_sig = if should_sign_effects {
Some(AuthoritySignInfo::new(
epoch_store.epoch(),
effects,
Intent::iota_app(IntentScope::TransactionEffects),
self.name,
&*self.secret,
))
} else {
None
};

// index certificate
let _ = self
.post_process_one_tx(certificate, effects, &inner_temporary_store, epoch_store)
Expand All @@ -1490,12 +1471,7 @@ impl AuthorityState {
// The insertion to epoch_store is not atomic with the insertion to the
// perpetual store. This is OK because we insert to the epoch store
// first. And during lookups we always look up in the perpetual store first.
epoch_store.insert_tx_key_and_effects_signature(
&tx_key,
tx_digest,
&effects.digest(),
effects_sig.as_ref(),
)?;
epoch_store.insert_tx_key_and_digest(&tx_key, tx_digest)?;

// Allow testing what happens if we crash here.
fail_point_async!("crash");
Expand Down Expand Up @@ -2120,12 +2096,6 @@ impl AuthorityState {
indexes
.index_tx(
cert.data().intent_message().value.sender(),
cert.data()
.intent_message()
.value
.input_objects()?
.iter()
.map(|o| o.object_id()),
effects
.all_changed_objects()
.into_iter()
Expand Down Expand Up @@ -4695,7 +4665,7 @@ impl AuthorityState {
gas_cost_summary: &GasCostSummary,
checkpoint: CheckpointSequenceNumber,
epoch_start_timestamp_ms: CheckpointTimestamp,
) -> anyhow::Result<(IotaSystemState, SystemEpochInfoEvent, TransactionEffects)> {
) -> anyhow::Result<(IotaSystemState, SystemEpochInfoEventV1, TransactionEffects)> {
let mut txns = Vec::new();

if let Some(tx) = self.create_authenticator_state_tx(epoch_store) {
Expand Down Expand Up @@ -4832,14 +4802,14 @@ impl AuthorityState {
self.prepare_certificate(&execution_guard, &executable_tx, input_objects, epoch_store)?;
let system_obj = get_iota_system_state(&temporary_store.written)
.expect("change epoch tx must write to system object");
// Find the SystemEpochInfoEvent emitted by the advance_epoch transaction.
// Find the SystemEpochInfoEventV1 emitted by the advance_epoch transaction.
let system_epoch_info_event = temporary_store
.events
.data
.iter()
.find(|event| event.is_system_epoch_info_event())
.expect("end of epoch tx must emit system epoch info event");
let system_epoch_info_event = bcs::from_bytes::<SystemEpochInfoEvent>(
let system_epoch_info_event = bcs::from_bytes::<SystemEpochInfoEventV1>(
&system_epoch_info_event.contents,
)
.expect("deserialization should succeed since we asserted that the event is of this type");
Expand Down
Loading
Loading