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

update transaction_outputs #20456

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion crates/sui-core/src/transaction_orchestrator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ impl TransactionOrchestratorMetrics {
)
.unwrap(),
wait_for_finality_finished: register_int_counter_with_registry!(
"tx_orchestrator_wait_for_finality_fnished",
"tx_orchestrator_wait_for_finality_finished",
"Total number of txns Transaction Orchestrator gets responses from Quorum Driver before timeout, either success or failure",
registry,
)
Expand Down
5 changes: 2 additions & 3 deletions crates/sui-core/src/transaction_outputs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ impl TransactionOutputs {
let modified_at: HashSet<_> = effects.modified_at_versions().into_iter().collect();
let possible_to_receive = transaction.transaction_data().receiving_objects();
let received_objects = possible_to_receive
.iter()
.cloned()
.into_iter()
.filter(|obj_ref| modified_at.contains(&(obj_ref.0, obj_ref.1)));

// We record any received or deleted objects since they could be pruned, and smear shared
Expand Down Expand Up @@ -94,7 +93,7 @@ impl TransactionOutputs {
.filter_map(|(id, ((version, digest), owner))| {
owner.is_address_owned().then_some((id, version, digest))
})
.chain(received_objects)
.chain(received_objects.into_iter())
.collect();

let new_locks_to_init: Vec<_> = written
Expand Down