Bitcoin Forum
July 11, 2024, 06:18:03 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [ASK] wallet accounting getbalance and staking coin  (Read 1190 times)
fikihafana (OP)
Sr. Member
****
Offline Offline

Activity: 462
Merit: 250



View Profile
July 27, 2016, 12:33:21 AM
 #1

I wanna build mini project for simple staking coin site and now i stucked to get balance from wallet. I try to use RPC with command getbalance my_address, then wallet return this

Accounting API is deprecated and will be removed in future.
It can easily result in negative or odd balances if misused or misunderstood, which has happened in the field.
If you still want to enable it, add to your config file enableaccounts=1
(code -1)

if i try to add enableaccounts=1 and  staking=0, problem will solve but my coin not staking again.

What should i do if i wanna getbalance from address and my coin still staking?? or should i change my architecture?
achow101
Staff
Legendary
*
Offline Offline

Activity: 3444
Merit: 6785


Just writing some code


View Profile WWW
July 27, 2016, 12:46:27 AM
 #2

What coin are you using, because it isn't Bitcoin.

Try not setting staking=0, because, if you couldn't tell, it sets staking to "off" (0 is off, 1 is on)

fikihafana (OP)
Sr. Member
****
Offline Offline

Activity: 462
Merit: 250



View Profile
July 27, 2016, 01:33:34 AM
 #3

What coin are you using, because it isn't Bitcoin.

Try not setting staking=0, because, if you couldn't tell, it sets staking to "off" (0 is off, 1 is on)

yes it is not bitcoin wallet, it's wallet which support pos mining. btw if i set staking=1 it still cannot use getbalance address.
achow101
Staff
Legendary
*
Offline Offline

Activity: 3444
Merit: 6785


Just writing some code


View Profile WWW
July 27, 2016, 02:00:49 AM
 #4

What coin are you using, because it isn't Bitcoin.

Try not setting staking=0, because, if you couldn't tell, it sets staking to "off" (0 is off, 1 is on)

yes it is not bitcoin wallet, it's wallet which support pos mining. btw if i set staking=1 it still cannot use getbalance address.
Then you are going to have to examine the source code to see what is going on.

fikihafana (OP)
Sr. Member
****
Offline Offline

Activity: 462
Merit: 250



View Profile
July 27, 2016, 02:16:47 PM
 #5

What coin are you using, because it isn't Bitcoin.

Try not setting staking=0, because, if you couldn't tell, it sets staking to "off" (0 is off, 1 is on)

yes it is not bitcoin wallet, it's wallet which support pos mining. btw if i set staking=1 it still cannot use getbalance address.
Then you are going to have to examine the source code to see what is going on.

Last option for me is change some code (accounting API) in wallet it self and then compile them. But i don't know is this will make a new trouble for the blockchain it self.

I'm still looking possible way Huh. Btw thanks for your suggestion
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!