Bitcoin Forum
May 22, 2024, 05:37:44 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: bitcoind - how "move" mechanism works  (Read 2215 times)
lorenzoasr (OP)
Newbie
*
Offline Offline

Activity: 11
Merit: 0


View Profile
March 13, 2014, 01:06:25 AM
 #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
ivroer
Member
**
Offline Offline

Activity: 89
Merit: 14


View Profile
March 13, 2014, 01:45:17 AM
 #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).
wheatstone
Member
**
Offline Offline

Activity: 82
Merit: 10


View Profile
March 13, 2014, 04: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.
kjj
Legendary
*
Offline Offline

Activity: 1302
Merit: 1025



View Profile
March 13, 2014, 07: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.

17Np17BSrpnHCZ2pgtiMNnhjnsWJ2TMqq8
I routinely ignore posters with paid advertising in their sigs.  You should too.
werrindor
Member
**
Offline Offline

Activity: 98
Merit: 10


View Profile
March 14, 2014, 09:08:39 AM
 #5

What does the "move method" means and how it transfers balances from one account to another?
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!