rpc/account; fixed mempool tx filter bug; fixed iavl_tree persistence

bug
This commit is contained in:
Jae Kwon
2015-01-10 05:41:50 -08:00
parent 4a81b06b6e
commit fe566739fd
15 changed files with 171 additions and 14 deletions

View File

@ -43,6 +43,8 @@ func WriteAPIResponse(w http.ResponseWriter, status APIStatus, data interface{})
}
w.Header().Set("Content-Type", "application/json")
w.WriteHeader(200)
/* Bad idea: (e.g. hard to use with jQuery)
switch res.Status {
case API_OK:
w.WriteHeader(200)
@ -56,7 +58,7 @@ func WriteAPIResponse(w http.ResponseWriter, status APIStatus, data interface{})
w.WriteHeader(430)
default:
w.WriteHeader(440)
}
}*/
w.Write(buf.Bytes())
}