Post
Topic
Board Beginners & Help
Re: Is there a way to find if two addresses come from the same wallet?
by
elena.m
on 09/08/2012, 08:02:12 UTC
You're mixing up accounts and addresses.

You can use sendfrom to send from a particular account, but that doesn't change which adress(es) the payment comes from.  The concept of 'accounts' is purely accounting within your local client and doesn't affect the generated transactions at all.

If you want to send from a specific address rather than an account, you can combine it with setaccount.

I really think you're mistaken.  'bitcoind sendfrom' doesn't do what you think it does.  It debits the specified account, but uses whichever unspent outputs in your wallet fit the spent amount best* no matter which address 'owns' them.

* for a particular and somewhat weird definition of 'best'

This is such incredibly broken and counter-intuitive behaviour that I hadn't even considered that anyone in their right mind would do such a thing, even after you suggested that someone had. But I just looked it up, and you're right: accounts don't work.

I am still utterly flabbergasted that this exists. bitcoind's accounts rank as one of the most epic design failures I have ever seen.

Thanks for making me hate the world. ;p