added comms http

This commit is contained in:
Bas van Kervel
2015-06-16 13:07:13 +02:00
parent 60c2ccd99c
commit fd764d4ff7
5 changed files with 254 additions and 1 deletions

View File

@ -1,6 +1,8 @@
package api
import (
"github.com/ethereum/go-ethereum/logger"
"github.com/ethereum/go-ethereum/logger/glog"
"github.com/ethereum/go-ethereum/rpc/shared"
)
@ -40,6 +42,8 @@ func (self *MergedApi) Methods() []string {
// Call the correct API's Execute method for the given request
func (self *MergedApi) Execute(req *shared.Request) (interface{}, error) {
glog.V(logger.Detail).Infof("rpc method: %s", req.Method)
if res, _ := self.handle(req); res != nil {
return res, nil
}