重构提交8

This commit is contained in:
wuwei1972 2019-04-12 15:56:55 +08:00
parent b1e8bb7ec4
commit 061865d8c6
2 changed files with 50 additions and 55 deletions

View File

@ -55,7 +55,6 @@ class ModuleManager(moduleName: String, sysTag: String,enableStatistic:Boolean,e
init()
loadModule
def init(): Unit = {
val (ip, port) = ActorUtils.getIpAndPort(selfAddr)
pe.setIpAndPort(ip, port)
@ -64,8 +63,6 @@ class ModuleManager(moduleName: String, sysTag: String,enableStatistic:Boolean,e
confHeler.init()
}
def loadModule = {
loadClusterModule
loadApiModule
@ -88,7 +85,7 @@ class ModuleManager(moduleName: String, sysTag: String,enableStatistic:Boolean,e
context.actorOf(EndorseCollector.props("endorsementcollectioner"), "endorsementcollectioner")
context.actorOf(Endorser.props("endorser"), "endorser")
context.actorOf(PreloaderForTransaction.props("preloaderoftransaction", context.actorOf(TransProcessor.props("sandbox", "", self), "sandboxProcessor")), "preloaderoftransaction")
context.actorOf(Endorser.props("endorser"), "endorser")
//context.actorOf(Endorser.props("endorser"), "endorser")
context.actorOf(Voter.props("voter"), "voter")
}
}
@ -112,14 +109,12 @@ class ModuleManager(moduleName: String, sysTag: String,enableStatistic:Boolean,e
context.actorOf(MemberListener.props("memberlistener"), "memberlistener")
}
//除了广播消息P2P的跨域消息都通过其中转同步存储等
override def receive: Receive = {
case _ => //ignore
}
}
class ConfigerHelper(conf: Config, tag: String, dbTag: String) {
def init(): Unit = {

View File

@ -73,12 +73,12 @@ object GlobalUtils {
val synchrequester = 9
val transactionpool = 10
val storager = 11
val synchresponser = 12
val statiscollecter = 13
val endorsementcollectioner = 14
val endorsementrequester = 15
val confirmerofblock = 16
val gensisblock = 17
val synchresponser = 18
}