-
Notifications
You must be signed in to change notification settings - Fork 3
WIP: Issues/42 db structure rework #46
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
base: development
Are you sure you want to change the base?
Conversation
| // updateIntervals.push(setInterval(function () { | ||
| // spawnCmd('node', [ 'scripts/peers.js' ]) | ||
| // }, settings.peer_timeout)) | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the plan here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I should mention, I'm still debugging a couple database issues (hence the 'WIP') and I just wanted to manually run the indexing myself for testing, this will be uncommented when I finish.
lib/explorer.js
Outdated
| // { 'vin': { $elemMatch: { 'addresses': 'coinbase', 'amount': { $gt: 0 } } } } | ||
| // ).then(([ err, txes ]) => | ||
| // txes.reduce((sum, tx) => sum + tx.vin.find(vin => vin.addresses === 'coinbase').amount, 0) | ||
| // ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove deprecated?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, there are a couple legacy ways the explorer was calculating total supply that I'll remove now that I've found that gettxoutsetinfo returns that info anyways.
Tx collection is gone.
Bitcoin-node-api is gone and replaced with custom caching solution.
UI improvements as well.