Class LogEntry

java.lang.Object
com.norswap.nanoeth.receipts.LogEntry

public final class LogEntry
extends Object
A log entry generated during contract execution.
  • Field Details

    • logger

      public final Address logger
      Address that generated this log.
    • topics

      public final LogTopic[] topics
      Topics for this entry.
    • data

      public final byte[] data
      Arbitrary data attached to the entry.
  • Constructor Details

    • LogEntry

      public LogEntry​(Address logger, LogTopic[] topics, byte[] data)
  • Method Details

    • addToBloomFilter

      public void addToBloomFilter​(BloomFilter bloomFilter)
      Adds the address and the topics for this entry into the given log filter.

      This implements the M(O) function from the yellowpaper excepted that the output of the function is immediately combined with the given bloom filter. This target bloom filter is most likely a combination of many individual log entry bloom filters, to be used as BlockHeader.logsBloom.