mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 04:09:23 +00:00
Support trailing commas in create_db
This commit is contained in:
@@ -29,7 +29,7 @@ use crate::{
|
||||
create_db! {
|
||||
CosignDb {
|
||||
ReceivedCosign: (set: ValidatorSet, block: [u8; 32]) -> Vec<u8>,
|
||||
DistinctChain: (set: ValidatorSet) -> ()
|
||||
DistinctChain: (set: ValidatorSet) -> (),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ create_db! {
|
||||
CosignTriggered: () -> (),
|
||||
IntendedCosign: () -> (u64, Option<u64>),
|
||||
BlockHasEvents: (block: u64) -> u8,
|
||||
CosignTransactions: (network: NetworkId) -> Vec<(Session, u64, [u8; 32])>
|
||||
CosignTransactions: (network: NetworkId) -> Vec<(Session, u64, [u8; 32])>,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ use crate::tributary::TributarySpec;
|
||||
|
||||
create_db! {
|
||||
NewTributaryDb {
|
||||
SeraiBlockNumber: (hash: [u8; 32]) -> u64
|
||||
SeraiBlockNumber: (hash: [u8; 32]) -> u64,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ const PLAN_SIGNING_CODE: u8 = 3;
|
||||
create_db!(
|
||||
NonceDeciderDb {
|
||||
NextNonceDb: (genesis: [u8; 32]) -> u32,
|
||||
ItemNonceDb: (genesis: [u8; 32], code: u8, id: &[u8]) -> u32
|
||||
ItemNonceDb: (genesis: [u8; 32], code: u8, id: &[u8]) -> u32,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user