Skip to content

Commit

Permalink
changing name blockhash to recent_blockhash
Browse files Browse the repository at this point in the history
  • Loading branch information
godmodegalactus committed Oct 3, 2023
1 parent 480631d commit 2730ea5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cluster-endpoints/src/grpc_subscription.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ fn process_block(
cu_requested,
prioritization_fees,
cu_consumed: compute_units_consumed,
blockhash: message.recent_blockhash().to_string(),
recent_blockhash: message.recent_blockhash().to_string(),
message: BinaryEncoding::Base64.encode(message.serialize()),
})
})
Expand Down
4 changes: 2 additions & 2 deletions core/src/structures/produced_block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pub struct TransactionInfo {
pub cu_requested: Option<u32>,
pub prioritization_fees: Option<u64>,
pub cu_consumed: Option<u64>,
pub blockhash: String,
pub recent_blockhash: String,
pub message: String,
}

Expand Down Expand Up @@ -132,7 +132,7 @@ impl ProducedBlock {
cu_requested,
prioritization_fees,
cu_consumed,
blockhash,
recent_blockhash: blockhash,
message,
})
})
Expand Down
2 changes: 1 addition & 1 deletion services/src/data_caching_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ impl DataCachingService {
for tx in block.transactions {
let block_info = data_cache
.block_information_store
.get_block_info(&tx.blockhash);
.get_block_info(&tx.recent_blockhash);
let last_valid_blockheight = if let Some(block_info) = block_info {
block_info.last_valid_blockheight
} else {
Expand Down

0 comments on commit 2730ea5

Please sign in to comment.