mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
Stop trying to publish a Batch if another node does
This commit is contained in:
@@ -22,6 +22,14 @@ impl Serai {
|
||||
self.storage(PALLET, "LatestNetworkBlock", Some(vec![scale_value(network)]), hash).await
|
||||
}
|
||||
|
||||
pub async fn get_last_batch_for_network(
|
||||
&self,
|
||||
hash: [u8; 32],
|
||||
network: NetworkId,
|
||||
) -> Result<Option<u32>, SeraiError> {
|
||||
self.storage(PALLET, "LastBatch", Some(vec![scale_value(network)]), hash).await
|
||||
}
|
||||
|
||||
pub async fn get_batch_events(
|
||||
&self,
|
||||
block: [u8; 32],
|
||||
|
||||
Reference in New Issue
Block a user