Simplify replay vote tracking by using packet metadata (#21112)
This commit is contained in:
@ -1115,9 +1115,12 @@ impl BankingStage {
|
||||
let tx: VersionedTransaction = limited_deserialize(&p.data[0..p.meta.size]).ok()?;
|
||||
let message_bytes = Self::packet_message(p)?;
|
||||
let message_hash = Message::hash_raw_message(message_bytes);
|
||||
let tx = SanitizedTransaction::try_create(tx, message_hash, |_| {
|
||||
Err(TransactionError::UnsupportedVersion)
|
||||
})
|
||||
let tx = SanitizedTransaction::try_create(
|
||||
tx,
|
||||
message_hash,
|
||||
Some(p.meta.is_simple_vote_tx),
|
||||
|_| Err(TransactionError::UnsupportedVersion),
|
||||
)
|
||||
.ok()?;
|
||||
tx.verify_precompiles(feature_set).ok()?;
|
||||
Some((tx, *tx_index))
|
||||
|
Reference in New Issue
Block a user