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

rpcserver: Correct rebroadcastwinners handler. #1234

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions rpcserver.go
Expand Up @@ -4477,7 +4477,7 @@ func handleRebroadcastMissed(s *rpcServer, cmd interface{}, closeChan <-chan str

// handleRebroadcastWinners implements the rebroadcastwinners command.
func handleRebroadcastWinners(s *rpcServer, cmd interface{}, closeChan <-chan struct{}) (interface{}, error) {
hash, height := s.server.blockManager.chainState.Best()
_, height := s.server.blockManager.chainState.Best()
blocks, err := s.server.blockManager.TipGeneration()
if err != nil {
return nil, rpcInternalError("Could not get generation "+
Expand All @@ -4492,7 +4492,7 @@ func handleRebroadcastWinners(s *rpcServer, cmd interface{}, closeChan <-chan st
"failed: "+err.Error(), "")
}
ntfnData := &WinningTicketsNtfnData{
BlockHash: *hash,
BlockHash: blocks[i],
BlockHeight: height,
Tickets: winningTickets,
}
Expand Down