v0.2.9-pre.009-fix.001

This commit is contained in:
2026-08-24 17:36:41 +02:00
parent a9fb6a7ac8
commit d32d8de3a5
6 changed files with 154 additions and 38 deletions

View File

@@ -1,5 +1,5 @@
// file: crates/ksp-onchain-transport-lib/src/grpc_subscribe.rs
// version: 7
// version: 8
const MAX_GRPC_BLOCKHASH_TEXT_LENGTH_BYTES: usize = 128;
const MAX_GRPC_BLOCK_VECTOR_COUNT: usize = 65_536;
@@ -2478,7 +2478,7 @@ pub enum YellowstoneSubscribeUpdate {
/// Slot lifecycle update.
Slot(crate::YellowstoneSlotUpdate),
/// Full transaction update.
Transaction(crate::YellowstoneTransactionUpdate),
Transaction(std::boxed::Box<crate::YellowstoneTransactionUpdate>),
/// Lightweight transaction-status update.
TransactionStatus(crate::YellowstoneTransactionStatusUpdate),
/// Full block update.
@@ -3679,7 +3679,9 @@ pub(crate) fn yellowstone_subscribe_update_from_wire(
return match kind {
1 => decode_account_update(wire).map(crate::YellowstoneSubscribeUpdate::Account),
2 => decode_slot_update(wire).map(crate::YellowstoneSubscribeUpdate::Slot),
3 => decode_transaction_update(wire).map(crate::YellowstoneSubscribeUpdate::Transaction),
3 => decode_transaction_update(wire).map(|update| {
return crate::YellowstoneSubscribeUpdate::Transaction(std::boxed::Box::new(update));
}),
4 => decode_transaction_status_update(wire).map(crate::YellowstoneSubscribeUpdate::TransactionStatus),
5 => decode_block_update(wire).map(crate::YellowstoneSubscribeUpdate::Block),
6 => decode_ping_update(wire).map(crate::YellowstoneSubscribeUpdate::Ping),

View File

@@ -1,5 +1,5 @@
// file: crates/ksp-onchain-transport-lib/tests/public_api.rs
// version: 46
// version: 47
//! Integration tests for the public `ksp-onchain-transport-lib` consumer contract.
@@ -973,6 +973,7 @@ fn public_v0_2_9_pre_008_yellowstone_blocks_contract_is_available_from_crate_roo
#[test]
fn public_v0_2_9_pre_009_yellowstone_bidi_session_contract_is_available_from_crate_root() {
fn assert_send<T: Send>() {
let _ = std::marker::PhantomData::<T>;
return;
}
assert_send::<ksp_onchain_transport_lib::SolanaYellowstoneGrpcSubscribeSession>();