Class ConsensusSnapshot

java.lang.Object
foundation.omni.json.pojo.ConsensusSnapshot

public class ConsensusSnapshot extends Object
Consensus data for a specified CurrencyID at a given blockHeight. Should really be in the package foundation.omni.consensus, but is here as a workaround to what was once a Groovy joint-compilation issue. TODO: Consolidate with other Consensus-related classes now that joint compilation issue is gone. TODO: A consensus snapshot should really capture the total number of coins for that property at the same block height so we can make sure the individual numbers sum up to the grand total.
  • Constructor Details

    • ConsensusSnapshot

      public ConsensusSnapshot(CurrencyID currencyID, int blockHeight, String sourceType, URI sourceURI, SortedMap<org.bitcoinj.base.Address,BalanceEntry> entries)
      ConsensusSnapshot from SortedMap and parameters
      Parameters:
      currencyID - currency id
      blockHeight - blockheight of snapshot
      sourceType - type of server returning the snapshot
      sourceURI - URI of server returning the snapshot
      entries - map of balance entries
  • Method Details

    • getCurrencyID

      public final CurrencyID getCurrencyID()
    • getBlockHeight

      public final int getBlockHeight()
    • getSourceType

      public final String getSourceType()
    • getSourceURI

      public final URI getSourceURI()
    • getEntries

      public final SortedMap<org.bitcoinj.base.Address,BalanceEntry> getEntries()