コード例 #1
0
        public void SendBlock()
        {
            var processor = new BlockProcessor();
            var dsl       = new BlockProcessorDsl(processor);

            dsl.Run(new string[] {
                "chain g0 b1",
                "send b1",
                "top b1"
            });
        }
コード例 #2
0
        public void SendTwoBlocksInReversedOrder()
        {
            var processor = new BlockProcessor();
            var dsl       = new BlockProcessorDsl(processor);

            dsl.Run(new string[] {
                "chain g0 b1 b2",
                "send b2 b1",
                "top b2"
            });
        }
コード例 #3
0
        public void SendTwoBlocks()
        {
            var processor = FactoryHelper.CreateBlockProcessor();
            var dsl       = new BlockProcessorDsl(processor);

            dsl.Run(new string[]
            {
                "chain g0 b1 b2",
                "send b1 b2",
                "top b2"
            });
        }
コード例 #4
0
        public void SendTwoBlocksAndTwoUncles()
        {
            var processor = new BlockProcessor();
            var dsl       = new BlockProcessorDsl(processor);

            dsl.Run(new string[] {
                "chain g0 b1 b2",
                "chain b1 c2 c3",
                "send b1 b2",
                "send c2 c3",
                "top c3"
            });
        }