mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
Add a test for Tributary
Further fleshes out the Tributary testing code.
This commit is contained in:
@@ -82,6 +82,7 @@ impl<P: P2p> P2p for Arc<P> {
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
pub struct Tributary<D: Db, T: Transaction, P: P2p> {
|
||||
network: TendermintNetwork<D, T, P>,
|
||||
|
||||
@@ -123,6 +124,10 @@ impl<D: Db, T: Transaction, P: P2p> Tributary<D, T, P> {
|
||||
Some(Self { network, synced_block, messages })
|
||||
}
|
||||
|
||||
pub fn block_time() -> u32 {
|
||||
TendermintNetwork::<D, T, P>::block_time()
|
||||
}
|
||||
|
||||
pub fn genesis(&self) -> [u8; 32] {
|
||||
self.network.blockchain.read().unwrap().genesis()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user