Example #1
0
        public void TestWireEncodeBlockHeader()
        {
            var actual = NetworkEncoder.EncodeBlockHeader(BLOCK_HEADER_1);

            CollectionAssert.AreEqual(BLOCK_HEADER_1_BYTES.ToList(), actual.ToList());
        }
Example #2
0
        public void TestWireDecodeBlockHeader()
        {
            var actual = NetworkEncoder.EncodeBlockHeader(NetworkEncoder.DecodeBlockHeader(BLOCK_HEADER_1_BYTES.ToArray().ToMemoryStream()));

            CollectionAssert.AreEqual(BLOCK_HEADER_1_BYTES.ToList(), actual.ToList());
        }
Example #3
0
        public void TestWireDecodeBlockHeader()
        {
            var actual = DataEncoder.EncodeBlockHeader(DataEncoder.DecodeBlockHeader(BLOCK_HEADER_1_BYTES.ToArray()));

            CollectionAssert.AreEqual(BLOCK_HEADER_1_BYTES.ToList(), actual.ToList());
        }