-
Notifications
You must be signed in to change notification settings - Fork 10
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
Setticketsvotebits #39
Conversation
are you going to resubmit your PR with fixed EncodeConcatenatedHashes ? I can get this is in if it's ready. |
I'm swamped. Sorry |
Oh no worries, wasn't trying to nag :) |
5bbafca
to
e9975cb
Compare
EncodeConcatenatedHashes actually implemented, but this PR is still untested. |
In dcrrpcclient, Unless I'm missing a trick, the slice of hash pointers input to SetTickets... needs to be converted to a slice of hashes. That's not much burden on dcrrpcclient, but it's an extra step I wanted to point out. The alternative is to let Also, it's curious that getTicketsVoteBits in dcrwallet/rpc/legacyrpc takes hashes as a []string instead of concatenated into a single string as setTicketsVoteBits does. No decoding necessary there. |
// provided by the server. | ||
func (r FutureSetTicketsVoteBitsResult) Receive() error { | ||
_, err := receiveFuture(r) | ||
return err |
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.
Any reason to use previous?
if err != nil {
return err
}
return nil
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.
I suppose for readability, but this way is acceptable.
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.
@jrick has talked to me about trying to make an effort to change to []Hashes instead of []*Hashes when possible. So this would keep in line with the direction we want to go.
OK
// provided by the server. | ||
func (r FutureSetTicketsVoteBitsResult) Receive() error { | ||
_, err := receiveFuture(r) | ||
return err |
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.
I suppose for readability, but this way is acceptable.
For the dcrjson addition: decred/dcrd@cc25399
And the dcrwallet addition:
decred/dcrwallet@781468d
Needs
EncodeConcatenatedHashed
in dcrd PR decred/dcrd#429