mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 20:29:23 +00:00
Use scale instead of bincode throughout processor-messages/processor DB
scale is canonical, bincode is not.
This commit is contained in:
@@ -11,6 +11,7 @@ use frost::{
|
||||
|
||||
use log::{info, debug, warn, error};
|
||||
|
||||
use scale::Encode;
|
||||
use messages::sign::*;
|
||||
use crate::{
|
||||
Get, DbTxn, Db,
|
||||
@@ -74,7 +75,7 @@ impl<N: Network, D: Db> SignerDb<N, D> {
|
||||
}
|
||||
|
||||
fn attempt_key(id: &SignId) -> Vec<u8> {
|
||||
Self::sign_key(b"attempt", bincode::serialize(id).unwrap())
|
||||
Self::sign_key(b"attempt", id.encode())
|
||||
}
|
||||
fn attempt(txn: &mut D::Transaction<'_>, id: &SignId) {
|
||||
txn.put(Self::attempt_key(id), []);
|
||||
|
||||
Reference in New Issue
Block a user