rename checks to check
This commit is contained in:
parent
4dac4d4df7
commit
8539302ad8
|
@ -8,12 +8,11 @@
|
||||||
//! Verification is provided via a `tower::Service`, to support backpressure and batch
|
//! Verification is provided via a `tower::Service`, to support backpressure and batch
|
||||||
//! verification.
|
//! verification.
|
||||||
|
|
||||||
mod checks;
|
mod check;
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests;
|
mod tests;
|
||||||
|
|
||||||
use checks::*;
|
|
||||||
use chrono::Utc;
|
use chrono::Utc;
|
||||||
use color_eyre::eyre::{eyre, Report};
|
use color_eyre::eyre::{eyre, Report};
|
||||||
use futures_util::FutureExt;
|
use futures_util::FutureExt;
|
||||||
|
@ -109,7 +108,7 @@ where
|
||||||
// Field validity and structure checks
|
// Field validity and structure checks
|
||||||
let now = Utc::now();
|
let now = Utc::now();
|
||||||
block.header.is_time_valid_at(now)?;
|
block.header.is_time_valid_at(now)?;
|
||||||
is_coinbase_first(&block)?;
|
check::is_coinbase_first(&block)?;
|
||||||
|
|
||||||
// TODO:
|
// TODO:
|
||||||
// - context-free header verification: merkle root
|
// - context-free header verification: merkle root
|
||||||
|
|
Loading…
Reference in New Issue