Skip to content

Commit

Permalink
Merge pull request ethereum#110 from holisticode/nomockdep
Browse files Browse the repository at this point in the history
p2p/simulations: removed requirement for a mocker from network
  • Loading branch information
zelig authored Jul 4, 2017
2 parents 8bb82d8 + c47cc68 commit a911f75
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion p2p/simulations/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,8 @@ func (s *Server) StartMocker(w http.ResponseWriter, req *http.Request) {
mockerid := req.Context().Value("mock").(string)

if len(s.Mockers) == 0 {
http.Error(w, "mocker not configured", http.StatusInternalServerError)
//don't require a mocker to be present
s.JSON(w, http.StatusNotModified, "No mocker configured")
return
}

Expand Down

0 comments on commit a911f75

Please sign in to comment.