format
This commit is contained in:
parent
0831834d8f
commit
f9ee877392
3 changed files with 92 additions and 67 deletions
|
|
@ -88,10 +88,7 @@ impl BlockUndoer for StoreBlockUndoer {
|
|||
{
|
||||
was_indexed = true;
|
||||
}
|
||||
if db::ido::delete_entries(&self.db.ido_w, Some(&blockheader.block_hash()))
|
||||
.await?
|
||||
> 0
|
||||
{
|
||||
if db::ido::delete_entries(&self.db.ido_w, Some(&blockheader.block_hash())).await? > 0 {
|
||||
was_indexed = true;
|
||||
}
|
||||
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
18
src/main.rs
18
src/main.rs
|
|
@ -566,14 +566,6 @@ async fn launch() -> _ {
|
|||
});
|
||||
}
|
||||
|
||||
// Always-on IDO endpoints.
|
||||
let ido_routes = routes![
|
||||
rpc::ido::list_idos,
|
||||
rpc::ido::get_ido_by_id,
|
||||
rpc::ido::get_ido_by_offering_token,
|
||||
rpc::ido::list_ido_entries,
|
||||
];
|
||||
|
||||
rocket::build()
|
||||
.attach(signal::ShutdownFairing)
|
||||
.attach(signal::IbdCheckFairing)
|
||||
|
|
@ -643,7 +635,15 @@ async fn launch() -> _ {
|
|||
rpc::tokentoken::list_tokens,
|
||||
],
|
||||
)
|
||||
.mount("/ido", ido_routes)
|
||||
.mount(
|
||||
"/ido",
|
||||
routes![
|
||||
rpc::ido::list_idos,
|
||||
rpc::ido::get_ido_by_id,
|
||||
rpc::ido::get_ido_by_offering_token,
|
||||
rpc::ido::list_ido_entries,
|
||||
],
|
||||
)
|
||||
.mount("/", routes![rpc::health::health])
|
||||
.attach(cors)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue