Figured that accounts are only used for some sort of summaries.
Let's say I have two accounts in my wallet:
- acc1 with addr1 holding 5btc
- acc2 with addr2 holding 10btc
When I do a move(acc2, acc1, 1), then 1btc should wander from acc2 into acc1.
Right, which just requires changing the "5" to a "6" and the "10" to a "9".
But how is this handled address-wise? The moved bitcoin needs to be removed from addr2 and added either to addr1 or to a new address which gets assigned to acc1.
No, it doesn't. You've moved it from one account to another, not from one address to another.
So either:
- acc1 with addr1 holding 6btc
- acc2 with addr2 holding 9btc
or
- acc1 with addr1 holding 5btc and addr3 holding 1btc
- acc2 with addr2 holding 9btc
The fact that addr1 is associated with acc1 means *ONLY* that newly-received coins sent to addr1 are credited to acc1. If a new address needed to be created, there would be no reason to associate it with acc1 specifically and in fact it would be associated with the default account.