示例#1
0
        public SaveTransaction(UInt160 chainHash)
            : base(chainHash)
        {
            InitDataTable(TableType.Transaction);

            utxo           = new SaveUTXO(chainHash);
            asset          = new SaveAsset(chainHash);
            notify         = new SaveNotify(chainHash);
            txScriptMethod = new SaveTxScriptMethod(chainHash);
        }
示例#2
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());
        }