mirror of
https://gitee.com/BTAJL/repchain.git
synced 2024-12-06 05:37:51 +08:00
重构提交8
This commit is contained in:
parent
b1e8bb7ec4
commit
061865d8c6
@ -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 = {
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user