mirror of
https://github.com/0xfnzero/solana-streamer.git
synced 2026-08-18 19:38:04 +00:00
refactor: remove bs58 dependency and use solana_sdk program ID constants
- Remove standalone bs58 dependency and rely on the solana_sdk re-export - Switch system and token program IDs to the idiomatic spl_token / solana_sdk constants - Use pubkey! and LazyLock for cleaner program ID initialization - Alias solana_entry::Entry as SolanaEntry to avoid a naming conflict with gRPC types - Remove unused FromStr imports and some redundant logic
This commit is contained in:
@@ -85,7 +85,7 @@ impl EventParser {
|
||||
let recent_blockhash = if message.recent_blockhash.is_empty() {
|
||||
None
|
||||
} else {
|
||||
Some(bs58::encode(&message.recent_blockhash).into_string())
|
||||
Some(solana_sdk::bs58::encode(&message.recent_blockhash).into_string())
|
||||
};
|
||||
Self::parse_instruction_events_from_grpc_transaction(
|
||||
protocols,
|
||||
|
||||
Reference in New Issue
Block a user