Author

Topic: [ASK] wallet accounting getbalance and staking coin (Read 1204 times)

sr. member
Activity: 462
Merit: 250
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
staff
Activity: 3458
Merit: 6793
Just writing some code
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.
sr. member
Activity: 462
Merit: 250
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.
staff
Activity: 3458
Merit: 6793
Just writing some code
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)
sr. member
Activity: 462
Merit: 250
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?
Jump to: