-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PR to add komodo rewards data to insight explorer ui #4
base: kmd-rewards
Are you sure you want to change the base?
Conversation
cc: @ca333 |
can you elaborate on getRawTransaction? |
We are calculating the reward info of a transaction in the bitcore-node layer.This means we are sending too many RPC calls to komodod to get data for each transaction and it's inputs.If we have the reward info in the getrawtransaction of komodod already, then all the spammy requests to komodod can be prevented. |
node.services.bitcoind.getDetailedTransaction already provides pre-populated inputs and outputs data which doesn't require additional overhead to pull data for each input |
We are already using this to access transaction data.but for a transaction, to calculate the reward claimed/was eligible to be claimed, we need the locktimes,height etc., of the transactions of each of the inputs.So, if a transaction has 20 inputs we need to call node.services.bitcoind.getDetailedTransaction 20 times for the data of each of the inputs. But,if this reward info for a transaction is available from komodod in an RPC, all these requests are not needed. cc: @pbca26 |
right, i missed that |
As far as I know bitcore-node-komodo just has caches for transactions,addresses etc., and the caches are lost with each restart of the explorer.Do you know if there is a database already integrated in the bitcore-node layer so that the data can persist across restarts/crashes? |
Yes you are correct, unfortunately this is a legacy product and it doesn't have a DB on it's own. I'm working on a related changes for the explorer and ran into the same issue where local DB is needed. I know for a fact that insight explorer v8.0 is using a local DB instance since bitcoind doesn't have insight related code anylonger in it's code base. However, their API completely changed and it would require quite an amount of work to add KMD support to v8. I might be wrong but I think Zcash is not supported either. |
Pending rewards display format change.