Skip to content

Commit

Permalink
chore: use get_block with transaction version 0
Browse files Browse the repository at this point in the history
  • Loading branch information
albert-llimos committed Nov 18, 2024
1 parent 238c90b commit b0cf890
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion engine/src/witness/sol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,14 @@ impl VoterApi<SolanaLiveness> for SolanaLivenessVoter {
slot: <SolanaLiveness as ElectoralSystem>::ElectionProperties,
) -> Result<<<SolanaLiveness as ElectoralSystem>::Vote as VoteStorage>::Vote, anyhow::Error> {
Ok(SolHash::from_str(
&self.client.get_block(slot, RpcBlockConfig::default()).await.blockhash,
&self
.client
.get_block(
slot,
RpcBlockConfig { max_supported_transaction_version: 0, ..Default::default() },
)
.await
.blockhash,
)
.map_err(|e| anyhow::anyhow!("Failed to convert blockhash String to SolHash: {e}"))?)
}
Expand Down

0 comments on commit b0cf890

Please sign in to comment.