You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, it seems to me that caching get_block function can get broken, because in some cases this function may return None (e.g. when the block is not found, like here:
You mean when the node is not in sync yet or after a reorg? That is indeed undesirable, what I will try first is to never cache when None is returned. If that still doesn't work I will disable cache all together, as it does then more harm than good
Hello, it seems to me that caching
get_block
function can get broken, because in some cases this function may returnNone
(e.g. when the block is not found, like here:py-substrate-interface/substrateinterface/base.py
Lines 2223 to 2226 in eb9e75f
None
value is cached. We should do something with it.The text was updated successfully, but these errors were encountered: