saifi009 / bitcoinj

Automatically exported from code.google.com/p/bitcoinj
0 stars 0 forks source link

Transactions: effect on balance of my wallet #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It would be useful if a transactions can be asked for the effect on the balance 
of my wallet. This means the the sum of output values sent to my keys minus the 
sum of input values taken from my keys.

Currently transactions can only be asked for getValueSentToMe (coins send to 
the keys in my wallet).

Original issue reported on code.google.com by andreas....@gmail.com on 11 Mar 2011 at 1:51

GoogleCodeExporter commented 9 years ago
How does r19 look? You'd have to add the two calls together to get the net 
impact.

Original comment by hearn@google.com on 12 Mar 2011 at 5:58

GoogleCodeExporter commented 9 years ago
Looks good. However, as a user of your API I've got no idea what a 
"ScriptException" is trying to tell me. 

Original comment by andreas....@gmail.com on 13 Mar 2011 at 11:21

GoogleCodeExporter commented 9 years ago
Yes. I need to rethink that. It means, basically, that the data inside the 
transaction was malformed or could not be understood in some way. I agree it's 
kind of pointless in that it's unclear how to handle it.

Original comment by hearn@google.com on 13 Mar 2011 at 1:07

GoogleCodeExporter commented 9 years ago
This was fixed by r19. The exceptions is a different problem.

Original comment by hearn@google.com on 20 Apr 2011 at 4:34