Skip to content

Commit 163482d

Browse files
remove raw
1 parent 87de4a0 commit 163482d

3 files changed

Lines changed: 17 additions & 17 deletions

File tree

chain/src/lib.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,7 @@ mod tests {
756756
.block_upload_started
757757
.load(std::sync::atomic::Ordering::SeqCst),
758758
0,
759-
"raw block uploads should stay idle when certified uploads succeed",
759+
"block uploads should stay idle when certified uploads succeed",
760760
);
761761
});
762762
}
@@ -796,7 +796,7 @@ mod tests {
796796
link_validators(&mut oracle, &participants, link, None).await;
797797

798798
// Reject certificate uploads so the only way blocks can reach the
799-
// indexer is through the durable raw block consumer.
799+
// indexer is through the durable block consumer.
800800

801801
let indexer = mocks::Client::new().with_fail_certs();
802802

@@ -824,7 +824,7 @@ mod tests {
824824
assert!(!indexer
825825
.finalization_seen
826826
.load(std::sync::atomic::Ordering::Relaxed));
827-
// The durable consumer should compensate by uploading raw blocks.
827+
// The durable consumer should compensate by uploading blocks.
828828
for _ in 0..10 {
829829
if indexer
830830
.block_upload_completed
@@ -878,7 +878,7 @@ mod tests {
878878

879879
// Hold the first few certificate uploads open so finalized queue
880880
// rows exist while a certificate path for the same digest is still
881-
// in flight. The raw consumer should wait instead of racing them.
881+
// in flight. The block consumer should wait instead of racing them.
882882
let mut cert_upload_senders = Vec::new();
883883
let mut cert_upload_waiters = Vec::new();
884884
for _ in 0..8 {
@@ -932,11 +932,11 @@ mod tests {
932932
.block_upload_started
933933
.load(std::sync::atomic::Ordering::SeqCst),
934934
0,
935-
"raw block uploads should wait while certificate uploads are still in flight",
935+
"block uploads should wait while certificate uploads are still in flight",
936936
);
937937

938938
// Release the blocked certificate uploads and confirm the
939-
// certificate-bearing paths finish without the raw consumer ever
939+
// certificate-bearing paths finish without the block consumer ever
940940
// needing to step in.
941941
drop(cert_upload_senders);
942942
for _ in 0..10 {
@@ -957,7 +957,7 @@ mod tests {
957957
.block_upload_started
958958
.load(std::sync::atomic::Ordering::SeqCst),
959959
0,
960-
"raw block uploads should remain idle when certificate uploads eventually succeed",
960+
"block uploads should remain idle when certificate uploads eventually succeed",
961961
);
962962
});
963963
}
@@ -995,7 +995,7 @@ mod tests {
995995
};
996996
link_validators(&mut oracle, &participants, link, None).await;
997997

998-
// Hold the first two raw block uploads open so we can observe the
998+
// Hold the first two block uploads open so we can observe the
999999
// consumer's parallelism before any upload completes.
10001000
let (release_first, wait_first) = oneshot::channel();
10011001
let (release_second, wait_second) = oneshot::channel();
@@ -1135,8 +1135,8 @@ mod tests {
11351135
blocked_waiters.push(receiver);
11361136
}
11371137

1138-
// Use one mock that keeps raw uploads blocked during the first run, and
1139-
// a second mock that still rejects cert uploads but lets replayed raw
1138+
// Use one mock that keeps block uploads blocked during the first run, and
1139+
// a second mock that still rejects cert uploads but lets replayed block
11401140
// uploads complete during recovery.
11411141
let blocked_indexer = mocks::Client::new()
11421142
.with_fail_certs()
@@ -1290,7 +1290,7 @@ mod tests {
12901290
let mut registrations = register_validators(&mut oracle, &participants).await;
12911291
let participants_set = Set::from_iter_dedup(participants.clone());
12921292

1293-
// Do not relink validators on restart. Any successful raw block
1293+
// Do not relink validators on restart. Any successful block
12941294
// uploads in this run must therefore come from replaying the
12951295
// durable queue and restored marshal state.
12961296
for (signer, scheme) in private_keys.into_iter().zip(schemes) {

client/src/consensus.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ fn finalization_get_path(base: String, query: &IndexQuery) -> String {
3131
format!("{base}/finalization/{}", query.serialize())
3232
}
3333

34-
/// Raw block backfill endpoint used by the chain backfiller.
34+
/// Block backfill endpoint used by the chain backfiller.
3535
fn block_upload_path(base: String) -> String {
3636
format!("{base}/block")
3737
}
3838

3939
/// Block reads still go through this path. `Latest` and `Index` return certified
40-
/// data; digest lookups may return a raw block body recovered by the backfiller.
40+
/// data; digest lookups may return a block body recovered by the backfiller.
4141
fn block_get_path(base: String, query: &Query) -> String {
4242
format!("{base}/block/{}", query.serialize())
4343
}
@@ -188,7 +188,7 @@ impl<S: Strategy> Client<S> {
188188
}
189189

190190
pub async fn block_upload(&self, block: Block) -> Result<(), Error> {
191-
// Upload the raw block body without a notarization/finalization wrapper.
191+
// Upload the block body without a notarization/finalization wrapper.
192192
let result = self
193193
.http_client
194194
.post(block_upload_path(self.uri.clone()))

indexer/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ impl<S: Strategy> Indexer<S> {
171171
}
172172
}
173173

174-
/// Resolve canonical chain queries by finalized height/latest, or raw block
174+
/// Resolve canonical chain queries by finalized height/latest, or block
175175
/// fallback queries by digest.
176176
pub fn get_block(&self, query: &str) -> Option<BlockResult> {
177177
let state = self.state.read().unwrap();
@@ -193,7 +193,7 @@ impl<S: Strategy> Indexer<S> {
193193
.map(|f| BlockResult::Finalized(f.clone()))
194194
})
195195
} else if raw.len() == Digest::SIZE {
196-
// Raw block uploads are keyed by digest and are not restricted
196+
// Block uploads are keyed by digest and are not restricted
197197
// to the canonical finalized chain.
198198
let digest = Digest::decode(raw.as_slice()).ok()?;
199199
state
@@ -208,7 +208,7 @@ impl<S: Strategy> Indexer<S> {
208208
}
209209
}
210210

211-
/// Store a raw block body for digest lookups used by the backfiller.
211+
/// Store a block body for digest lookups used by the backfiller.
212212
pub fn submit_block(&self, block: Block) {
213213
let mut state = self.state.write().unwrap();
214214
// These uploads are not certificate-bearing; verified certificate data

0 commit comments

Comments
 (0)