Bitcoin Forum
June 25, 2024, 01:16:54 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Which bitcoin core version is best for Merchant website  (Read 281 times)
annie9771 (OP)
Member
**
Offline Offline

Activity: 118
Merit: 11


View Profile
July 30, 2018, 03:19:04 PM
 #1

Task : to accept and sent payments in bitcoin
Issue : i am using bitcoin-core version 0.16.2 , but i can see many functions are not working e.g

./src/bitcoin-cli  getaccountaddress "annie"
error code: -32
error message:getaccountaddress is deprecated and will be removed in V0.18. To use this command, start bitcoind with -deprecatedrpc=accounts.


so that's mean everytime on new version we have to change our code ? how to deal with this , please help me
MadGamer
Legendary
*
Offline Offline

Activity: 1568
Merit: 1031


View Profile
July 30, 2018, 03:53:05 PM
 #2

Start bitcoind with -deprecatedrpc=accounts as they said, that should work.

and to answer your question, no. You won't necessarily need to change your code after each release.
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3430
Merit: 6720


Just writing some code


View Profile WWW
July 30, 2018, 03:55:48 PM
Merited by Foxpup (2), Welsh (2), gmaxwell (1), HeRetiK (1)
 #3

First of all, you are not using Bitcoin Core 0.16.2 because that error is not in Bitcoin Core 0.16.2. It is in the current master branch which is the development branch. That error (along with many other changes), will be in 0.17.

Secondly, you should read the error message. It is telling you that the RPC will be removed in 0.18 and it tells you how to enable it in the version that you are using. That means that, going forward, you should not be using that RPC. This does not mean that every time you upgrade Bitcoin Core that you have to change your code. However, if you are using things that are being deprecated, then yes, you will. That is what deprecation means.

You should not be using the accounts system because it is being removed. That is explicitly being told to you in that error message. You should use something else that is not deprecated.

annie9771 (OP)
Member
**
Offline Offline

Activity: 118
Merit: 11


View Profile
July 30, 2018, 04:04:23 PM
 #4

i installed bitcoin yesterday,
Start bitcoind with -deprecatedrpc=accounts as they said, that should work.

and to answer your question, no. You won't necessarily need to change your code after each release.
-deprecatedrpc=accounts  can i use this in configuration file ?
HeRetiK
Legendary
*
Offline Offline

Activity: 2968
Merit: 2111



View Profile
July 31, 2018, 09:35:05 AM
Merited by achow101 (3), Welsh (2)
 #5

i installed bitcoin yesterday,
Start bitcoind with -deprecatedrpc=accounts as they said, that should work.

and to answer your question, no. You won't necessarily need to change your code after each release.
-deprecatedrpc=accounts  can i use this in configuration file ?

You can, but you shouldn't. Especially when starting a new project.

Using deprecated functionality is how you build up technical debt and incur problems further down the road (ie. you won't be able to update Bitcoin Core without breaking existing functionality unless you rewrite parts of your app).

I found a post by achow101 on StackExchange that could point you in the right direction:
https://bitcoin.stackexchange.com/questions/70583/question-on-getaccountaddress-getnewaddress-getaddressesbyaccount#70595
gmaxwell
Moderator
Legendary
*
expert
Offline Offline

Activity: 4200
Merit: 8441



View Profile WWW
August 01, 2018, 02:06:59 AM
Merited by Foxpup (2)
 #6

It is almost completely certain that the accounts functionality does not do what you want and never has, in any case.

Accounts were created to be the backend of a long defunct webwallet service (that lost or ran off with everyone's funds), people often think they do things that they don't, such as act as multiwallet does (or even other things that don't make much sense in Bitcoin like "from addresses").
MadGamer
Legendary
*
Offline Offline

Activity: 1568
Merit: 1031


View Profile
August 05, 2018, 07:51:04 AM
 #7

It is almost completely certain that the accounts functionality does not do what you want and never has, in any case.

Accounts were created to be the backend of a long defunct webwallet service (that lost or ran off with everyone's funds), people often think they do things that they don't, such as act as multiwallet does (or even other things that don't make much sense in Bitcoin like "from addresses").


In that case, what does this update mean for online wallets? they'll have to shutdown unless they don't upgrade their bitcoind?
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3430
Merit: 6720


Just writing some code


View Profile WWW
August 05, 2018, 04:29:53 PM
Merited by Foxpup (2)
 #8

In that case, what does this update mean for online wallets? they'll have to shutdown unless they don't upgrade their bitcoind?
No major online wallet uses Bitcoin Core's account system. In fact, no major service uses Bitcoin Core for their wallet. So no, they won't shutdown because they have their own systems for handling wallets and user accounts. Bitcoin Core is typically used solely for block and transaction validation as an edge node in all major services.

annie9771 (OP)
Member
**
Offline Offline

Activity: 118
Merit: 11


View Profile
August 06, 2018, 06:20:24 AM
 #9

In that case, what does this update mean for online wallets? they'll have to shutdown unless they don't upgrade their bitcoind?
No major online wallet uses Bitcoin Core's account system. In fact, no major service uses Bitcoin Core for their wallet. So no, they won't shutdown because they have their own systems for handling wallets and user accounts. Bitcoin Core is typically used solely for block and transaction validation as an edge node in all major services.

Agreed after reading on google , now i have decided that i will generate offline wallets for users , then i will sign transactions offline and broadcast , any best library for this ?
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!