public void Can_retrieve_node_values() { _stateDb.Set(TestItem.KeccakA, TestItem.RandomDataA); byte[][] values = _syncServer.GetNodeData(new[] { TestItem.KeccakA, TestItem.KeccakB }); Assert.AreEqual(2, values.Length, "data.Length"); Assert.AreEqual(TestItem.RandomDataA, values[0], "data[0]"); Assert.AreEqual(null, values[1], "data[1]"); }
public Task <byte[][]> GetNodeData(Keccak[] hashes, CancellationToken token) { return(Task.FromResult(_remoteSyncServer.GetNodeData(hashes))); }