Auto exchange transactions relay metrics (#237)

* auto exchange tx relay dashboard

* cargo fmt --all

* single metrics startup fn
This commit is contained in:
Svyatoslav Nikolsky
2020-07-28 14:08:20 +03:00
committed by Bastian Köcher
parent 156ec9862f
commit 0be27839bc
9 changed files with 187 additions and 50 deletions
+8 -1
View File
@@ -42,7 +42,14 @@ pub trait SourceBlock {
/// Block hash type.
type Hash: Clone + Debug + Display;
/// Block number type.
type Number: Debug + Display + Clone + Copy + std::cmp::Ord + std::ops::Add<Output = Self::Number> + num_traits::One;
type Number: Debug
+ Display
+ Clone
+ Copy
+ Into<u64>
+ std::cmp::Ord
+ std::ops::Add<Output = Self::Number>
+ num_traits::One;
/// Block transaction.
type Transaction: SourceTransaction;