(w http.ResponseWriter, r *http.Request)
| 95 | } |
| 96 | |
| 97 | func (d *DosNode) balance(w http.ResponseWriter, r *http.Request) { |
| 98 | html := "Balance :" |
| 99 | result, err := d.chain.Balance() |
| 100 | if err != nil { |
| 101 | html = html + err.Error() |
| 102 | } else { |
| 103 | html = html + result.String() |
| 104 | } |
| 105 | w.Write([]byte(html)) |
| 106 | } |
| 107 | |
| 108 | func (d *DosNode) enableAdmin(w http.ResponseWriter, r *http.Request) { |
| 109 | d.logger.Info("[DOS] isAdmin") |