Beispiel #1
0
        public bool Matches(ref BloomStructRef bloom)
        {
            if (Addresses != null)
            {
                bool result  = true;
                var  indexes = AddressesBloomExtracts;
                for (var i = 0; i < indexes.Length; i++)
                {
                    var index = indexes[i];
                    result = bloom.Matches(ref index);
                    if (result)
                    {
                        break;
                    }
                }

                return(result);
            }
            else if (Address == null)
            {
                return(true);
            }
            else
            {
                return(bloom.Matches(AddressBloomExtract));
            }
        }
Beispiel #2
0
        public override bool Matches(ref BloomStructRef bloom)
        {
            for (int i = 0; i < _subexpressions.Length; i++)
            {
                if (_subexpressions[i].Matches(ref bloom))
                {
                    return(true);
                }
            }

            return(false);
        }
        public bool Matches(ref BloomStructRef bloom)
        {
            bool result = true;

            for (int i = 0; i < _expressions.Length; i++)
            {
                result = _expressions[i].Matches(ref bloom);
                if (!result)
                {
                    break;
                }
            }

            return(result);
        }
Beispiel #4
0
 public bool Matches(ref BloomStructRef bloom) => AddressFilter.Matches(ref bloom) && TopicsFilter.Matches(ref bloom);
Beispiel #5
0
 public override bool Matches(ref BloomStructRef bloom) => true;
Beispiel #6
0
 public void Accumulate(BloomStructRef bloom)
 {
     Bytes.Or(bloom.Bytes);
 }
Beispiel #7
0
 public bool Equals(BloomStructRef other)
 {
     return(Nethermind.Core.Extensions.Bytes.AreEqual(Bytes, other.Bytes));
 }
Beispiel #8
0
 public override bool Matches(ref BloomStructRef bloom) => bloom.Matches(BloomExtract);
Beispiel #9
0
 public abstract bool Matches(ref BloomStructRef bloom);