Rework pool tests to use real chain (was mock chain) (#3342)

* rework pool tests to use real chain (was mock chain) to better reflect reality (tx/block validation rules etc.)

* cleanup
This commit is contained in:
Antioch Peverell
2020-06-07 09:26:08 +01:00
committed by GitHub
parent c7c9a32b9b
commit c54568e69f
11 changed files with 677 additions and 1093 deletions
+2 -2
View File
@@ -287,9 +287,9 @@ pub trait PoolAdapter: Send + Sync {
/// Dummy adapter used as a placeholder for real implementations
#[allow(dead_code)]
pub struct NoopAdapter {}
pub struct NoopPoolAdapter {}
impl PoolAdapter for NoopAdapter {
impl PoolAdapter for NoopPoolAdapter {
fn tx_accepted(&self, _entry: &PoolEntry) {}
fn stem_tx_accepted(&self, _entry: &PoolEntry) -> Result<(), PoolError> {
Ok(())