internal int GetBucketPosition(uint256 nKey, bool fNew, int nBucket) { UInt64 hash1 = Cheap( Hashes.Hash256( nKey.ToBytes() .Concat(new byte[] { (fNew ? (byte)'N' : (byte)'K') }) .Concat(Utils.ToBytes((uint)nBucket, false)) .Concat(Address.GetKey()) .ToArray())); return((int)(hash1 % ADDRMAN_BUCKET_SIZE)); }