We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81d19c0 commit 3167067Copy full SHA for 3167067
runtime-transaction/src/transaction_with_meta.rs
@@ -6,7 +6,12 @@ use {
6
};
7
8
pub trait TransactionWithMeta: StaticMeta + SVMTransaction {
9
- // Required to interact with geyser plugins.
+ /// Required to interact with geyser plugins.
10
+ /// This function should not be used except for interacting with geyser.
11
+ /// It may do numerous allocations that negatively impact performance.
12
fn as_sanitized_transaction(&self) -> Cow<SanitizedTransaction>;
13
+ /// Required to interact with several legacy interfaces that require
14
+ /// `VersionedTransaction`. This should not be used unless necessary, as it
15
+ /// performs numerous allocations that negatively impact performance.
16
fn to_versioned_transaction(&self) -> VersionedTransaction;
17
}
0 commit comments