Exemplo n.º 1
0
        public void TestWireDecodeVersionPayloadWithRelay()
        {
            var actual = NetworkEncoder.EncodeVersionPayload(NetworkEncoder.DecodeVersionPayload(VERSION_PAYLOAD_2_RELAY_BYTES.ToArray(), VERSION_PAYLOAD_2_RELAY_BYTES.Length), withRelay: true);

            CollectionAssert.AreEqual(VERSION_PAYLOAD_2_RELAY_BYTES.ToList(), actual.ToList());
        }
Exemplo n.º 2
0
        public void TestWireEncodeVersionPayloadWithRelay()
        {
            var actual = NodeEncoder.EncodeVersionPayload(VERSION_PAYLOAD_2_RELAY, withRelay: true);

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