Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new balancetomaintain rpc command #120

Merged
merged 1 commit into from
Mar 18, 2016

Conversation

alexlyp
Copy link
Member

@alexlyp alexlyp commented Mar 17, 2016

This will now allow users to update balancetomaintain while wallet is running.

Also make balanceToMaintain into unexported and restrict access to normal get/setters.

@jcvernaleo
Copy link
Member

The help needs to be added for these commands.

@jcvernaleo
Copy link
Member

Also needs a rebase.

@jcvernaleo
Copy link
Member

Code looks good, need my node to catch up then I'll test.

@jcvernaleo
Copy link
Member

jcv@triforce tmp $ dcrctl --testnet --wallet setbalancetomaintain 1.1
jcv@triforce tmp $ dcrctl --testnet --wallet getbalancetomaintain
110000000

Are those using different units? If so, should probably make them use the same.

@jcvernaleo
Copy link
Member

That takes care of the output and help. It does need some bounds checking though:

jcv@triforce tmp $ dcrctl --testnet --wallet setbalancetomaintain 1000000000000000000000000000000
jcv@triforce tmp $ dcrctl --testnet --wallet getbalancetomaintain
-9.223372036854776e+10

@jcvernaleo
Copy link
Member

tACK
just squash and rebase.

Restrict access to balanceToMaintain to only new get/set funcs
@jcvernaleo jcvernaleo merged commit 045a934 into decred:master Mar 18, 2016
@alexlyp alexlyp deleted the ayp_balancetomaintain branch April 4, 2016 18:28
beansgum pushed a commit to beansgum/dcrwallet that referenced this pull request Jun 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants