mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-09 04:39:24 +00:00
Misc comments
This commit is contained in:
@@ -53,20 +53,6 @@ TODO
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
async fn get_block_number(&self, id: &<Self::Block as Block<Self>>::Id) -> usize {
|
||||
self
|
||||
.provider
|
||||
.get_block(B256::from(*id).into(), BlockTransactionsKind::Hashes)
|
||||
.await
|
||||
.unwrap()
|
||||
.unwrap()
|
||||
.header
|
||||
.number
|
||||
.try_into()
|
||||
.unwrap()
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
async fn get_transaction_by_eventuality(
|
||||
&self,
|
||||
|
||||
@@ -31,6 +31,9 @@ pragma solidity ^0.8.26;
|
||||
The alternative would be to have a council publish the Serai key on-Ethereum,
|
||||
with Serai verifying the published result. This would introduce a DoS risk in
|
||||
the council not publishing the correct key/not publishing any key.
|
||||
|
||||
This design does not work with designs expecting initialization (which may require re-deploying
|
||||
the same code until the initialization successfully goes through, without being sniped).
|
||||
*/
|
||||
|
||||
contract Deployer {
|
||||
|
||||
Reference in New Issue
Block a user