Author

Topic: bitcoind - how "move" mechanism works (Read 2215 times)

member
Activity: 98
Merit: 10
March 14, 2014, 05:08:39 AM
#5
What does the "move method" means and how it transfers balances from one account to another?
kjj
legendary
Activity: 1302
Merit: 1025
March 13, 2014, 03:09:43 PM
#4
Stop.  Accounts do not work the way you think they do.  Odds are good that you are setting up to shoot yourself in the foot  Stop right now and go find out how they really work.

Accounts are credited when transactions come in to an address owned by that account.  They are debited when transactions are created that specify the account.  They can be adjusted in pairs by a move.

Those are the ONLY times that accounts are updated.  Assigning a used address to an account is not in that list.  Most spends are not in that list either.

Keys do not belong to accounts, and the wallet pays absolutely positively no attention to accounts when picking transactions to spend.
member
Activity: 82
Merit: 10
March 13, 2014, 12:50:25 PM
#3
wallet > account > address > input

Inputs are what the blockchain works with. For each input, there are rules governing how it can be spent. A typical rule would be that a specific private key has to be used, indicated by an address. Multiple inputs can have the same "address" and thus be claimed with the same private key.

Accounts are a construct that solely exists in the wallet software. It's a way of segregating addresses into separate portions.
member
Activity: 89
Merit: 14
March 12, 2014, 09:45:17 PM
#2
Hi Lorenzo, welcome to the forum.

I understand the possible confusion, until recently I wasn't aware the move command even existed.

In general I think a lot of people assume that "wallets", "accounts", and "addresses" are all the same, and they are not. An account can be associated with several Bitcoin addresses, but the reference client also allows you to do some internal accounting which abstracts accounts from the underlying addresses.

As far as I can tell a move command simply re-assigns some bitcoin amount to the internal wallet database, and to make sure you don't "overspend" an account (i.e. dip into other addresses/accounts in your wallet) then you need to always use "sendfrom" which should respect the account balances.

Basically, accounts is a virtual balance inside a wallet, moving amounts between accounts just updates internal references to which account values are associated to 1 or more "real" addresses. An outside observer wouldn't know the balances of your accounts, but they could see individual balances of each address (if they knew you owned them).
newbie
Activity: 11
Merit: 0
March 12, 2014, 09:06:25 PM
#1
Hello, i'm new in the word of bitcoin.

I'm having some doubts about how "move" works. If i create 2 different account with bitcoind, they will have 2 different address, so the relative transactions will be signed with their 2 private keys in the blockchain. Now,from bitcoin official website:

Use the move method to transfer balances from one account to another. Moves are not broadcast to the network, and never incur transaction fees; they just adjust account balances in the wallet.
 
How can bitcoind move BTC between accounts without modify the blockchain? Maybe there is some tecnhical detail that i'm missing  Huh

Thank you,
Lorenzo
Jump to: