Open coolaj86 opened 2 years ago
it's not reasonable to get it to deposit Đ1.00000000 perfectly
Not sure why it's not reasonable. Can't you just make an output with exactly the amount that the user specified he wanted to stake in the crowdnode stake x
command?
Let's keep this one open until after we have some more feedback from others.
Can't you just make an output with exactly the amount that the user specified he wanted to stake in the
crowdnode stake x
command?
No, because there are 3 deposits.
I suppose we could adjust the last deposit to subject the previous deposits and just leave some on the key since we need that anyway for additional commands...
CrowdNode just doesn't work well with exact amounts anyway. You can't withdraw exact amounts. You don't get dividends in exact amounts.
Re: https://github.com/dashhive/crowdnode-cli/issues/9#issuecomment-1175777872
You were asked to deposit Đ1.03 to account for Signup and ToS deposits. The deposits minus fees also count towards your stake.
Without knowing in advance how many utxos you'll be sending, the transfer fee, or other specifics that will be usually but not always the same, it's not reasonable to get it to deposit Đ1.00000000 perfectly.
DASH
Yes. https://github.com/dashhive/crowdnode.js/pull/28
Not only that, but
stdout
is used for the kinds of text that a person would want togrep
andstderr
is used for the kinds of text that someone would most likely want to ignore when piping between programs.One of the great philosophies of Unix is that you should be able to use the output of one program as the input to another program - "piping".
The idea is that if someone were writing a simple bash script using crowdnode-cli, it should behave nicely for them with grep, sed, awk, (and the modern rg, sd, bat) etc and they should be able to duck-tape together something interesting.