Skip to content

Commit 9edd6c2

Browse files
committed
Rename FirstSeenButNotVerified to UncleBlockNotVerified
1 parent 4de2a53 commit 9edd6c2

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

chain/src/consume_unverified.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ impl ConsumeUnverifiedBlockProcessor {
349349
error!("[verify block] notify new_uncle error {}", e);
350350
}
351351
}
352-
Ok(VerifiedBlockStatus::FirstSeenButNotVerified)
352+
Ok(VerifiedBlockStatus::UncleBlockNotVerified)
353353
}
354354
}
355355

chain/src/lib.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,12 @@ pub type VerifyCallback = Box<dyn FnOnce(VerifyResult) + Send + Sync>;
3434
/// VerifiedBlockStatus is
3535
#[derive(Debug, Clone, PartialEq)]
3636
pub enum VerifiedBlockStatus {
37-
// The block is being seen for the first time.
37+
// The block is being seen for the first time, and VM have verified it
3838
FirstSeenAndVerified,
3939

40-
// The block is being seen for the first time, but not verify it yet
41-
FirstSeenButNotVerified,
40+
// The block is being seen for the first time
41+
// but VM have not verified it since its a uncle block
42+
UncleBlockNotVerified,
4243

4344
// The block has been verified before.
4445
PreviouslySeenAndVerified,

0 commit comments

Comments
 (0)