-
Notifications
You must be signed in to change notification settings - Fork 21
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
client: Automatic fee payment from dcrwallet #382
Conversation
81ca261
to
c7e7ff6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have tried this out but replacing v3 wallet with v2 and it's working nicely. Thanks for making these changes. This is a very useful package to have access to!
Cheers Joe, I've made all those changes. |
263afea
to
5d3f56b
Compare
Thanks Buck. I found another mutex issue in Rebased onto latest changes in the wallet repo (decred/dcrwallet#2227) |
Replacing crypto/rand with math/rand doesn't sit well with me. You don't need a PRNG here, so the calls to uniformprng could be replaced with using crypto/rand directly. For the random jitter duration, I would just copy the body of the uniformprng Int63n method, but read a random uint64 from crypto/rand. |
5d3f56b
to
c73c5de
Compare
Copy files from dcrwallet without changing them at all, therefore this commit does not compile. It exists just to aid review. Commits following this one will clearly highlight what has been changed.
Includes a couple of tweaks to linter settings, nothing major.
c73c5de
to
cf8006a
Compare
Rebased and now using @buck54321 @JoeGruffins please test these latest changes against your code and see if this satisfies your requirements. |
cf8006a
to
0ec0813
Compare
Tested at |
Tested again today. Appears to be working great. |
I believe all feedback has been addressed and this can be merged. I pushed one last commit to move this back to dcrwallet/v3 in order to get this working against master dcrd/dcrwallet. |
The goal of this PR is to reduce dependencies between the VSP client and other wallet code. The first 3 commits are bringing the dcrwallet client up-to-date with some changes made in decred/vspd#382. As a result of this PR, feepayment.go no longer has any dependency on decred.org/dcrwallet, and the interface between dcrwallet and vspd can be reduced by 6 funcs.
Broken into commits to ease reviewing.
Closes #379