This commit is contained in:
Hossein Zoda 2026-06-22 19:48:09 +00:00
parent 0831834d8f
commit f9ee877392
3 changed files with 92 additions and 67 deletions

View file

@ -88,10 +88,7 @@ impl BlockUndoer for StoreBlockUndoer {
{ {
was_indexed = true; was_indexed = true;
} }
if db::ido::delete_entries(&self.db.ido_w, Some(&blockheader.block_hash())) if db::ido::delete_entries(&self.db.ido_w, Some(&blockheader.block_hash())).await? > 0 {
.await?
> 0
{
was_indexed = true; was_indexed = true;
} }

File diff suppressed because one or more lines are too long

View file

@ -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() rocket::build()
.attach(signal::ShutdownFairing) .attach(signal::ShutdownFairing)
.attach(signal::IbdCheckFairing) .attach(signal::IbdCheckFairing)
@ -643,7 +635,15 @@ async fn launch() -> _ {
rpc::tokentoken::list_tokens, 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]) .mount("/", routes![rpc::health::health])
.attach(cors) .attach(cors)
} }