mirror of
https://github.com/serai-dex/serai.git
synced 2025-02-02 11:16:41 +00:00
Prefix root keys in coordinator with "coordinator" to prevent conflicts with tributary
This commit is contained in:
parent
fda90e23c9
commit
2ad6b38be9
3 changed files with 3 additions and 3 deletions
|
@ -13,7 +13,7 @@ impl<'a, D: Db> MainDb<'a, D> {
|
|||
}
|
||||
|
||||
fn main_key(dst: &'static [u8], key: impl AsRef<[u8]>) -> Vec<u8> {
|
||||
D::key(b"MAIN", dst, key)
|
||||
D::key(b"coordinator_main", dst, key)
|
||||
}
|
||||
|
||||
fn acive_tributaries_key() -> Vec<u8> {
|
||||
|
|
|
@ -8,7 +8,7 @@ impl<D: Db> SubstrateDb<D> {
|
|||
}
|
||||
|
||||
fn substrate_key(dst: &'static [u8], key: impl AsRef<[u8]>) -> Vec<u8> {
|
||||
D::key(b"SUBSTRATE", dst, key)
|
||||
D::key(b"coordinator_substrate", dst, key)
|
||||
}
|
||||
|
||||
fn block_key() -> Vec<u8> {
|
||||
|
|
|
@ -57,7 +57,7 @@ impl<D: Db> TributaryDb<D> {
|
|||
}
|
||||
|
||||
fn tributary_key(dst: &'static [u8], key: impl AsRef<[u8]>) -> Vec<u8> {
|
||||
D::key(b"TRIBUTARY", dst, key)
|
||||
D::key(b"coordinator_tributary", dst, key)
|
||||
}
|
||||
|
||||
fn block_key(genesis: [u8; 32]) -> Vec<u8> {
|
||||
|
|
Loading…
Reference in a new issue