nochowderforyou / clams

Clam Project
MIT License
62 stars 58 forks source link

"getstakedbyaddress" is heavy #158

Closed dooglus closed 9 years ago

dooglus commented 9 years ago

Each time I run "getstakedbyaddress", the client loops through all the thousands of transactions in my wallet, checking whether they are stake transactions, whether they are for addresses I own, etc. and sums all the rewards for the transactions representing my coins staking.

This gets slower and slower over time.

I'd like the client to keep a count of the amount staked and update it each time a block is added to the chain.

dooglus commented 9 years ago

Fixed by #159.