Skip to content

Conversation

@Eternali
Copy link

Tx collection is gone.
Bitcoin-node-api is gone and replaced with custom caching solution.
UI improvements as well.

@Eternali Eternali self-assigned this Dec 20, 2018
@Eternali Eternali changed the title Issues/42 db structure rework WIP: Issues/42 db structure rework Dec 20, 2018
// updateIntervals.push(setInterval(function () {
// spawnCmd('node', [ 'scripts/peers.js' ])
// }, settings.peer_timeout))

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?

Copy link
Author

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)
// )

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove deprecated?

Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants