rename checks to check

This commit is contained in:
Alfredo Garcia 2020-08-18 14:47:57 -03:00 committed by Henry de Valence
parent 4dac4d4df7
commit 8539302ad8
2 changed files with 2 additions and 3 deletions

View File

@ -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