OSDN Git Service

Added net module.
[bytom/bytom.git] / blockchain / reactor.go
index 782580a..78942bf 100644 (file)
@@ -5,6 +5,7 @@ import (
        "errors"
        "reflect"
     "time"
+       "net/http"
 
        wire "github.com/tendermint/go-wire"
        "github.com/bytom/p2p"
@@ -14,6 +15,10 @@ import (
        cmn "github.com/tendermint/tmlibs/common"
        "github.com/bytom/blockchain/txdb"
        "github.com/bytom/blockchain/account"
+       //"github.com/bytom/net/http/gzip"
+       //"github.com/bytom/net/http/httpjson"
+       //"github.com/bytom/net/http/limit"
+       //"github.com/bytom/net/http/static"
 )
 
 const (
@@ -53,6 +58,7 @@ type BlockchainReactor struct {
        store        *txdb.Store
        accounts         *account.Manager
        pool         *BlockPool
+       mux          *http.ServeMux
        fastSync     bool
        requestsCh   chan BlockRequest
        timeoutsCh   chan string