I'm working on a fix for #413 and #238: it would be useful for both of them to know the "current height" (to know if the coinbase outputs are mature or in the case of #238 to check if we have reached a given minimum number of confirmations).
Since we might not have a Blockchain when running calls like get_balance, we should save the block height in the db every time we sync (and maybe the timestamp as well).
This could also be used to, for instance, only sync automatically if the data are x minutes old or something like that.
I'm working on a fix for #413 and #238: it would be useful for both of them to know the "current height" (to know if the coinbase outputs are mature or in the case of #238 to check if we have reached a given minimum number of confirmations).
Since we might not have a
Blockchainwhen running calls likeget_balance, we should save the block height in the db every time we sync (and maybe the timestamp as well).This could also be used to, for instance, only sync automatically if the data are
xminutes old or something like that.