mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 20:29:23 +00:00
clippy fix
This commit is contained in:
@@ -31,16 +31,6 @@ impl<D: Db> TributaryDb<D> {
|
||||
self.0.get(Self::block_key(genesis)).map(|last| last.try_into().unwrap()).unwrap_or(genesis)
|
||||
}
|
||||
|
||||
/* TODO
|
||||
pub fn slash_point_key(genesis: [u8; 32], id: [u8; 32]) -> Vec<u8> {
|
||||
Self::tributary_key(b"slash_point", [genesis, id].concat())
|
||||
}
|
||||
*/
|
||||
|
||||
pub fn slash_vote_key(genesis: [u8; 32], id: [u8; 13], target: [u8; 32]) -> Vec<u8> {
|
||||
Self::tributary_key(b"slash_vote", [genesis.as_slice(), &id, &target].concat())
|
||||
}
|
||||
|
||||
fn fatal_slash_key(genesis: [u8; 32]) -> Vec<u8> {
|
||||
Self::tributary_key(b"fatal_slash", genesis)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user