Package foundation.omni.json.pojo
Class ConsensusSnapshot
java.lang.Object
foundation.omni.json.pojo.ConsensusSnapshot
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 Summary
ConstructorsConstructorDescriptionConsensusSnapshot
(CurrencyID currencyID, int blockHeight, String sourceType, URI sourceURI, SortedMap<org.bitcoinj.base.Address, BalanceEntry> entries) ConsensusSnapshot from SortedMap and parameters -
Method Summary
Modifier and TypeMethodDescriptionfinal int
final CurrencyID
final SortedMap
<org.bitcoinj.base.Address, BalanceEntry> final String
final URI
-
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 idblockHeight
- blockheight of snapshotsourceType
- type of server returning the snapshotsourceURI
- URI of server returning the snapshotentries
- map of balance entries
-
-
Method Details
-
getCurrencyID
-
getBlockHeight
public final int getBlockHeight() -
getSourceType
-
getSourceURI
-
getEntries
-