Skip to content
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

Add unspent balance output #12

Merged
merged 4 commits into from
Jul 1, 2017
Merged

Add unspent balance output #12

merged 4 commits into from
Jul 1, 2017

Conversation

fsvm88
Copy link
Contributor

@fsvm88 fsvm88 commented Jun 21, 2017

Hi!
Would you be interested in merging these patches?
They add unspent CSV output dump as a CSV file (balance for all addresses where balance != 0).
Consider that it was my first attempt at writing code in rust and was mostly taken and modelled on the csvdump callback.
It uses a hashmap and preallocates around 10mln entries, which sort of reflects the number of unique unspent addresses at the time I wrote it (August last year).
The module can be useful to avoid having 150GB+ SQL databases just for tracking unspent output.
There's no suspend/resume support (would need to serialize/unserialize the hashmap to disk I guess).

@gcarq gcarq mentioned this pull request Jun 22, 2017
@gcarq gcarq merged commit 78885c5 into gcarq:master Jul 1, 2017
@Napulsnik
Copy link

Napulsnik commented Jul 27, 2017

Hello. Which command can get a list of unspent balances? In the help it is not written.

@fsvm88
Copy link
Contributor Author

fsvm88 commented Jul 27, 2017

Hi @Napulsnik, the command is "unspentcsvdump".
You should use it just like csvdump, it doesn't currently support/make use of the resume option, so it will always run on the entire blockchain.

@Napulsnik
Copy link

Thank you!

@Napulsnik
Copy link

Need a lot of memory. If you send me fresh list of all bitcoin addresses with balance I pay you 10$ in bitcoin. Deal?

@fsvm88
Copy link
Contributor Author

fsvm88 commented Jul 27, 2017

@Napulsnik Yup, it does need a lot of memory. Thanks for the offer, but I'd need to download and sync the entire blockchain and then run the whole thing. Don't have that much spare time atm. :)

@Napulsnik
Copy link

Ok.

@gcarq
Copy link
Owner

gcarq commented Jul 28, 2017

I will update the README to reflect that change.

@edenweb1
Copy link

edenweb1 commented Aug 21, 2017

@Napulsnik , I have a fresh csv list (all btc adress with positive balance - august 2017)
if you are interested !

@Napulsnik
Copy link

No longer needed

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.

4 participants