Here
https://github.com/stratum-mining/stratum/blob/main/roles/jd-server/src/lib/mempool/mod.rs#L85
there is a tokio task that is awaited, which does not make any sense. Since the function update_mempool is already an async method, I think that the generation of a new task can be definitely can be avoided without any substantial work.
Also the rpc method get_raw_mempool_verbose should be renamed with get_raw_mempool, as at the end the rpc call is getrawmempool without verbose.
good for first issue!
Here
https://github.com/stratum-mining/stratum/blob/main/roles/jd-server/src/lib/mempool/mod.rs#L85
there is a tokio task that is awaited, which does not make any sense. Since the function
update_mempoolis already an async method, I think that the generation of a new task can be definitely can be avoided without any substantial work.Also the rpc method
get_raw_mempool_verboseshould be renamed withget_raw_mempool, as at the end the rpc call isgetrawmempoolwithout verbose.good for first issue!