Faucet: Provide more info when a user tries to create a miner with a non-BLS address

This commit is contained in:
Aayush Rajasekaran 2020-02-12 18:41:23 -08:00
parent 6bf87e28e9
commit f24d947388

View File

@ -207,7 +207,8 @@ func (h *handler) mkminer(w http.ResponseWriter, r *http.Request) {
if owner.Protocol() != address.BLS {
w.WriteHeader(400)
w.Write([]byte("Miner address must use BLS"))
w.Write([]byte("Miner address must use BLS. A BLS address starts with the prefix 't3'."))
w.Write([]byte("Please create a BLS address by running \"lotus wallet new bls\" while connected to a Lotus node."))
return
}