Merge pull request #1261 from filecoin-project/asr/faucet

Faucet: Provide more info when a user tries to create a miner with a non-BLS address
This commit is contained in:
Whyrusleeping 2020-02-17 11:00:11 -08:00 committed by GitHub
commit ca0bed47c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -207,7 +207,8 @@ func (h *handler) mkminer(w http.ResponseWriter, r *http.Request) {
if owner.Protocol() != address.BLS { if owner.Protocol() != address.BLS {
w.WriteHeader(400) 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 return
} }