ckb_pow/
dummy.rs

1
2
3
4
5
6
7
8
9
10
11
12
use super::PowEngine;
use ckb_types::packed::Header;

/// A mock Pow Engine, mostly for development&test purpose, and may not used in real world verification
pub struct DummyPowEngine;

impl PowEngine for DummyPowEngine {
    /// This result will always be true
    fn verify(&self, _header: &Header) -> bool {
        true
    }
}