OSDN Git Service

make some fields of BlockchainReactor public to facilitate separate API (#477)
authorYongfeng LI <wliyongfeng@gmail.com>
Sat, 24 Mar 2018 07:21:48 +0000 (15:21 +0800)
committerPaladz <yzhu101@uottawa.ca>
Sat, 24 Mar 2018 07:21:48 +0000 (15:21 +0800)
commit14edb9b824d1cc13122b1c18cd52a844e22a4f39
tree61bc8095a1562497c4d90ce405c796a692743c05
parentdfedac499692d2f79f6938df4111ff75e8063334
make some fields of BlockchainReactor public to facilitate separate API (#477)

* move maxBytesHandler to api.go

* move Response to api.go

* call chain from api directly

* not call BlockchainReactor inner methods from API

* make BlockchainReactor txFeedTracker public
api/types.go [new file with mode: 0644]
blockchain/api.go
blockchain/blockchain_reactor.go
blockchain/miner.go
blockchain/reactor.go
blockchain/txfeeds.go
cmd/miner/main.go
node/node.go