Skip to content

Commit

Permalink
slot second idx
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesMDunn committed Sep 5, 2024
1 parent b57c892 commit 393145e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions cli/src/cluster_query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2104,6 +2104,7 @@ pub fn process_transaction_history(
slot,
transaction: transaction_with_meta,
index_in_block: _,
slot_second_idx: _,
} = confirmed_transaction;

let decoded_transaction =
Expand Down
1 change: 1 addition & 0 deletions cli/src/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -777,6 +777,7 @@ pub fn process_confirm(
slot,
transaction: transaction_with_meta,
index_in_block: _,
slot_second_idx: _,
} = confirmed_transaction;

let decoded_transaction =
Expand Down
1 change: 1 addition & 0 deletions rpc-client/src/mock_sender.rs
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ impl RpcSender for MockSender {
},
block_time: Some(1628633791),
index_in_block: 0,
slot_second_idx: None,
})?,
"getTransactionCount" => json![1234],
"getSlot" => json![0],
Expand Down
2 changes: 2 additions & 0 deletions transaction-status/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1114,6 +1114,7 @@ impl ConfirmedTransactionWithStatusMeta {
)?,
block_time: self.block_time,
index_in_block,
slot_second_idx: None,
})
}

Expand All @@ -1130,6 +1131,7 @@ pub struct EncodedConfirmedTransactionWithStatusMeta {
pub transaction: EncodedTransactionWithStatusMeta,
pub block_time: Option<UnixTimestamp>,
pub index_in_block: usize,
pub slot_second_idx: Option<u8>,
}

#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
Expand Down

0 comments on commit 393145e

Please sign in to comment.