void LoadCollisionData(byte[] buffer) { int index = 0; int uintLength; uint[] value; while (index < buffer.Length) { byte[] key = new byte[HASH_BYTE_SIZE]; Array.Copy(buffer, index, key, 0, HASH_BYTE_SIZE); index += HASH_BYTE_SIZE; int byteLength = VarInt.GetInt32(buffer, ref index); uintLength = byteLength >> 2; value = new uint[uintLength]; Buffer.BlockCopy(buffer, index, value, 0, byteLength); index += byteLength; CollisionTable.Add(key, value); } }
public override void AddUTXOAsCollision(byte[] uTXOKey) { CollisionTable.Add(uTXOKey, UTXO); }