Various small improvments to plugin_block_heights() , plugin_tx_fees() and logging.#6
Merged
ConanMishler merged 22 commits intoblocknetdx:mainfrom Jun 11, 2023
Merged
Conversation
add coroutine for faster process of few calls
trying to fix warning we see in logs: plugin-adapter.py:806: RuntimeWarning: coroutine 'getutxos' was never awaited return web.Response(text=await switchcase(await request.json())) RuntimeWarning: Enable tracemalloc to get the object allocation traceback plugin-adapter.py:806: RuntimeWarning: coroutine 'getrawtransaction' was never awaited return web.Response(text=await switchcase(await request.json())) RuntimeWarning: Enable tracemalloc to get the object allocation traceback plugin-adapter.py:806: RuntimeWarning: coroutine 'getrawmempool' was never awaited return web.Response(text=await switchcase(await request.json())) RuntimeWarning: Enable tracemalloc to get the object allocation traceback plugin-adapter.py:806: RuntimeWarning: coroutine 'getblockcount' was never awaited return web.Response(text=await switchcase(await request.json())) RuntimeWarning: Enable tracemalloc to get the object allocation traceback plugin-adapter.py:806: RuntimeWarning: coroutine 'sendrawtransaction' was never awaited return web.Response(text=await switchcase(await request.json())) RuntimeWarning: Enable tracemalloc to get the object allocation traceback plugin-adapter.py:806: RuntimeWarning: coroutine 'gettransaction' was never awaited return web.Response(text=await switchcase(await request.json())) RuntimeWarning: Enable tracemalloc to get the object allocation traceback plugin-adapter.py:806: RuntimeWarning: coroutine 'getblock' was never awaited return web.Response(text=await switchcase(await request.json())) RuntimeWarning: Enable tracemalloc to get the object allocation traceback plugin-adapter.py:806: RuntimeWarning: coroutine 'getblockhash' was never awaited return web.Response(text=await switchcase(await request.json())) RuntimeWarning: Enable tracemalloc to get the object allocation traceback plugin-adapter.py:806: RuntimeWarning: coroutine 'plugin_block_heights' was never awaited return web.Response(text=await switchcase(await request.json())) RuntimeWarning: Enable tracemalloc to get the object allocation traceback plugin-adapter.py:806: RuntimeWarning: coroutine 'plugin_tx_fees' was never awaited return web.Response(text=await switchcase(await request.json())) RuntimeWarning: Enable tracemalloc to get the object allocation traceback plugin-adapter.py:806: RuntimeWarning: coroutine 'getbalance' was never awaited return web.Response(text=await switchcase(await request.json())) RuntimeWarning: Enable tracemalloc to get the object allocation traceback plugin-adapter.py:806: RuntimeWarning: coroutine 'gethistory' was never awaited return web.Response(text=await switchcase(await request.json())) RuntimeWarning: Enable tracemalloc to get the object allocation traceback
revert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
add coroutines usage to add concurrency in plugin_block_heights() and plugin_tx_fees().
change logging for those 2 functions to just display final result and not one line per coin result.
improve error logging for connection errors to containers.
update aiorpcX from 0.18.4 to 0.18.7.