Bitcoin Forum
May 04, 2024, 06:53:11 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bitcoin-cli move?  (Read 461 times)
columbo (OP)
Jr. Member
*
Offline Offline

Activity: 45
Merit: 1


View Profile
October 07, 2017, 01:24:47 PM
Merited by ABCbits (1)
 #1

According to this page (https://en.bitcoin.it/wiki/Help:Accounts_explained#The_Default_Account) there is a move function between accounts on our wallet.
Are these moves instant and do not show up on blockchain?

Please check my last test transactions:
{
    "account": "Account2",
    "address": "1AiXzU8AA7NL6oVKrPR9d9hwATKWwMaadS",
    "category": "receive",
    "amount": 0.00100000,
    "label": "Account2",
    "vout": 0,
    "confirmations": 196,
    "blockhash": "0000000000000000007b634b3278a4d75744e77129bb961126246a6e5b7d06a6",
    "blockindex": 1147,
    "blocktime": 1507270616,
    "txid": "2e2d2869cea148a59a1033531042b7590867baba37b2b72b4787bbfcf370b778",
    "walletconflicts": [
    ],
    "time": 1507270440,
    "timereceived": 1507270440,
    "bip125-replaceable": "no"
},   
{
    "account": "Account1",
    "address": "15z2XgtEbjE1dZ4pFuN1FnZvinfYEmGfmg",
    "category": "receive",
    "amount": 0.00100000,
    "label": "Account1",
    "vout": 1,
    "confirmations": 192,
    "blockhash": "00000000000000000095b8f42ab53956052145534d9e1683c3b1a97668b5d802",
    "blockindex": 949,
    "blocktime": 1507274365,
    "txid": "39fc0d67a5c4830e8092654d28b555943f73f4f228c5dd837f6610a7c39243f2",
    "walletconflicts": [
    ],
    "time": 1507270616,
    "timereceived": 1507270616,
    "bip125-replaceable": "no"
},
{
    "account": "Account2",
    "category": "move",
    "time": 1507274482,
    "amount": -0.00100000,
    "otheraccount": "Account1",
    "comment": ""
},
{
    "account": "Account1",
    "category": "move",
    "time": 1507274482,
    "amount": 0.00100000,
    "otheraccount": "Account2",
    "comment": ""
}

So I received 0.001 to both Account1 and Account2 then moved 0.001 from Account1 to Account2.

However, this move does not have a transaction id and if I check on blockchain, the 2 addresses have the same balance (0.001).

https://blockchain.info/address/1AiXzU8AA7NL6oVKrPR9d9hwATKWwMaadS
https://blockchain.info/address/15z2XgtEbjE1dZ4pFuN1FnZvinfYEmGfmg
1714848791
Hero Member
*
Offline Offline

Posts: 1714848791

View Profile Personal Message (Offline)

Ignore
1714848791
Reply with quote  #2

1714848791
Report to moderator
1714848791
Hero Member
*
Offline Offline

Posts: 1714848791

View Profile Personal Message (Offline)

Ignore
1714848791
Reply with quote  #2

1714848791
Report to moderator
1714848791
Hero Member
*
Offline Offline

Posts: 1714848791

View Profile Personal Message (Offline)

Ignore
1714848791
Reply with quote  #2

1714848791
Report to moderator
Every time a block is mined, a certain amount of BTC (called the subsidy) is created out of thin air and given to the miner. The subsidy halves every four years and will reach 0 in about 130 years.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714848791
Hero Member
*
Offline Offline

Posts: 1714848791

View Profile Personal Message (Offline)

Ignore
1714848791
Reply with quote  #2

1714848791
Report to moderator
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3388
Merit: 6581


Just writing some code


View Profile WWW
October 07, 2017, 05:49:46 PM
Last edit: October 07, 2017, 05:59:59 PM by achow101
Merited by ABCbits (1)
 #2

move is a deprecated command that only effects Bitcoin Core's internal accounts system. The accounts system is deprecated. All that move does is that it changes some entries in the internal accounts system. No transactions are actually made.

columbo (OP)
Jr. Member
*
Offline Offline

Activity: 45
Merit: 1


View Profile
October 07, 2017, 05:52:26 PM
 #3

move/tt] is a deprecated command that only effects Bitcoin Core's internal accounts system. The accounts system is deprecated. All that move does is that it changes some entries in the internal accounts system. No transactions are actually made.

Thanks. Since it is deprecated, it is not advised to use it any more?
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3388
Merit: 6581


Just writing some code


View Profile WWW
October 07, 2017, 06:00:26 PM
 #4

Thanks. Since it is deprecated, it is not advised to use it any more?
Yes. The accounts system (and thus the move command) is slated to be removed soon.

columbo (OP)
Jr. Member
*
Offline Offline

Activity: 45
Merit: 1


View Profile
October 07, 2017, 06:03:54 PM
 #5

Thanks. Since it is deprecated, it is not advised to use it any more?
Yes. The accounts system (and thus the move command) is slated to be removed soon.

Thank you. If so, what is the best way to have a multi account wallet where you manage 10 - 100 - 1,000 - 100,000 accounts all with different balances?
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3388
Merit: 6581


Just writing some code


View Profile WWW
October 07, 2017, 06:44:56 PM
Merited by ABCbits (1)
 #6

Thank you. If so, what is the best way to have a multi account wallet where you manage 10 - 100 - 1,000 - 100,000 accounts all with different balances?
Use your own account system. Use an external database to handle your accounts and what each person's balance is. Don't try to make each address belong to certain accounts (the Bitcoin Core accounts system doesn't really work like that anyways). Or you can use the multi-wallet feature and have each wallet be an "account". However Bitcoin Core may not be able to handle hundreds or thousands of wallets with multi-wallet. It really is not designed for that use case.

ignatvkudrin
Sr. Member
****
Offline Offline

Activity: 671
Merit: 256


Universe Project


View Profile WWW
October 08, 2017, 09:56:10 AM
 #7

Thanks. Since it is deprecated, it is not advised to use it any more?
Yes. The accounts system (and thus the move command) is slated to be removed soon.
Soon? 2 years or more we wait it's great event, but we got just segwit))
Which version we can get new functionality?

achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3388
Merit: 6581


Just writing some code


View Profile WWW
October 08, 2017, 03:35:32 PM
 #8

Soon? 2 years or more we wait it's great event, but we got just segwit))
Which version we can get new functionality?
Every version of Bitcoin Core brings new functionality. The accounts system is not a consensus rule, it is an internal Bitcoin Core thing so it will be removed when it is implemented. This is very different from Segwit which is a consensus rule and required activation from the rest of the network.

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!