Esempio n. 1
0
        private Spider(ZoroSpider zoroSpider, IActorRef blockchain, UInt160 chainHash)
        {
            this.spider    = zoroSpider;
            this.chainHash = chainHash;

            saveBlock       = new SaveBlock(chainHash);
            saveNotify      = new SaveNotify(chainHash);
            saveTransaction = new SaveTransaction(chainHash);
            // 注册Blockchain的分发事件
            blockchain.Tell(new Blockchain.Register());
        }
Esempio n. 2
0
 public static Props Props(ZoroSpider spider, IActorRef blockchain, UInt160 chainHash)
 {
     return(Akka.Actor.Props.Create(() => new Spider(spider, blockchain, chainHash)));
 }