Skip to content

Commit

Permalink
[lbry] rpcclient: fix stratum update_block format for blocknotify
Browse files Browse the repository at this point in the history
  • Loading branch information
roylee17 committed Jul 28, 2022
1 parent daa3137 commit ea63a44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpcclient/examples/lbcdblocknotify/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func send(stratum, stratumPass, coinid, blockHash string) error {
}
defer conn.Close()

msg := fmt.Sprintf(`{"id":1,"method":"mining.update_block","params":[%q,%q,%q]}`,
msg := fmt.Sprintf(`{"id":1,"method":"mining.update_block","params":[%q,%s,%q]}`,
stratumPass, coinid, blockHash)

_, err = conn.Write([]byte(msg))
Expand Down

0 comments on commit ea63a44

Please sign in to comment.