Versions in this module Expand all Collapse all v0 v0.1.0 Jul 12, 2018 Changes in this version + const SecondsPerDay + const SecondsPerHour + const SecondsPerMinute + const SecondsPerWeek + func LessByAccessCount(bi, bj *CachedBlock) bool + func LessByAccessCountThenHeight(bi, bj *CachedBlock) bool + func LessByAccessTime(bi, bj *CachedBlock) bool + func LessByHeight(bi, bj *CachedBlock) bool + func MakeLessByAccessTimeThenCount(millisecondsBinned int64) func(bi, bj *CachedBlock) bool + func WatchPriorityQueue(bpq *BlockPriorityQueue) + type APICache struct + MainchainBlocks []chainhash.Hash + func NewAPICache(capacity uint32) *APICache + func (apic *APICache) Capacity() uint32 + func (apic *APICache) Disable() + func (apic *APICache) Enable() + func (apic *APICache) GetBlockSummary(height int64) *BlockDataBasic + func (apic *APICache) GetCachedBlockByHash(hash chainhash.Hash) *CachedBlock + func (apic *APICache) GetCachedBlockByHashStr(hashStr string) *CachedBlock + func (apic *APICache) GetCachedBlockByHeight(height int64) *CachedBlock + func (apic *APICache) Hits() uint64 + func (apic *APICache) Misses() uint64 + func (apic *APICache) RemoveCachedBlock(cachedBlock *CachedBlock) + func (apic *APICache) SetLessFn(lessFn func(bi, bj *CachedBlock) bool) + func (apic *APICache) StoreBlockSummary(blockSummary *BlockDataBasic) error + func (apic *APICache) Utilization() float64 + func (apic *APICache) UtilizationBlocks() int64 + type Address struct + Address string + Transactions []*AddressTxShort + type AddressTxRaw struct + BlockHash string + Blocktime int64 + Confirmations int64 + Locktime uint32 + Size int32 + Time int64 + TxID string + Version int32 + Vin []dcrjson.VinPrevOut + Vout []Vout + type AddressTxShort struct + Confirmations int64 + Size int32 + Time int64 + TxID string + Value float64 + type BlockDataBasic struct + Difficulty float64 + Hash string + Height uint32 + PoolInfo TicketPoolInfo + Size uint32 + StakeDiff float64 + Time int64 + type BlockDataWithTxType struct + Revs []dcrjson.TxRawResult + Tickets []dcrjson.TxRawResult + Votes []TxRawWithVoteInfo + type BlockExplorerBasic struct + FreshStake uint8 + Height uint32 + Revocations uint8 + Size uint32 + StakeDiff float64 + Time int64 + Voters uint16 + type BlockExplorerExtraInfo struct + CoinSupply int64 + FormattedTime string + NextBlockSubsidy *dcrjson.GetBlockSubsidyResult + TxLen int + type BlockID struct + BlockHash string + BlockHeight int64 + BlockIndex uint32 + BlockTime int64 + Time int64 + type BlockPriorityQueue struct + func NewBlockPriorityQueue(capacity uint32) *BlockPriorityQueue + func (pq *BlockPriorityQueue) Insert(summary *BlockDataBasic) (bool, *chainhash.Hash) + func (pq *BlockPriorityQueue) Pop() interface{} + func (pq *BlockPriorityQueue) Push(blockSummary interface{}) + func (pq *BlockPriorityQueue) Reheap() + func (pq *BlockPriorityQueue) RemoveBlock(b *CachedBlock) + func (pq *BlockPriorityQueue) RemoveIndex(idx int) + func (pq *BlockPriorityQueue) RescanMinMax() + func (pq *BlockPriorityQueue) RescanMinMaxForAdd(height uint32) + func (pq *BlockPriorityQueue) RescanMinMaxForRemove(height uint32) + func (pq *BlockPriorityQueue) RescanMinMaxForUpdate(heightAdd, heightRemove uint32) + func (pq *BlockPriorityQueue) ResetHeap(bh []*CachedBlock) + func (pq *BlockPriorityQueue) SetLessFn(lessFn func(bi, bj *CachedBlock) bool) + func (pq *BlockPriorityQueue) UpdateBlock(b *CachedBlock, summary *BlockDataBasic) + func (pq BlockPriorityQueue) Len() int + func (pq BlockPriorityQueue) Less(i, j int) bool + func (pq BlockPriorityQueue) Swap(i, j int) + type BlockSummarySaver interface + StoreBlockSummary func(blockSummary *BlockDataBasic) error + type BlockTransactions struct + STx []string + Tx []string + type BlockValidation struct + Hash string + Height int64 + Validity bool + type CachedBlock struct + func (b *CachedBlock) Access() *BlockDataBasic + func (b CachedBlock) String() string + type MempoolTicketDetails struct + Height uint32 + Length uint32 + Tickets TicketsDetails + Time int64 + Total uint32 + type MempoolTicketFeeInfo struct + Height uint32 + LowestMineable float64 + Time int64 + type MempoolTicketFees struct + FeeRates []float64 + Height uint32 + Length uint32 + Time int64 + Total uint32 + type OutPoint struct + Hash string + Index uint32 + Tree int8 + type PrevOut struct + Addresses []string + Value float64 + type ScriptPubKey struct + Addresses []string + Asm string + CommitAmt *float64 + ReqSigs int32 + Type string + type ScriptSig struct + Asm string + Hex string + type StakeDiff struct + Estimates dcrjson.EstimateStakeDiffResult + IdxBlockInWindow int + PriceWindowNum int + type StakeInfoExtended struct + Feeinfo dcrjson.FeeInfoBlock + IdxBlockInWindow int + PoolInfo TicketPoolInfo + PriceWindowNum int + StakeDiff float64 + type StakeInfoExtendedEstimates struct + Feeinfo dcrjson.FeeInfoBlock + IdxBlockInWindow int + PoolInfo TicketPoolInfo + PriceWindowNum int + StakeDiff StakeDiff + type Status struct + APIVersion int + DBHeight uint32 + DcrdataVersion string + Height uint32 + NodeConnections int64 + Ready bool + type TicketDetails struct + Fee float64 + FeeRate float64 + Hash string + Height int64 + Size int32 + type TicketPoolInfo struct + Size uint32 + ValAvg float64 + Value float64 + type TicketPoolValsAndSizes struct + EndHeight uint32 + Size []float64 + StartHeight uint32 + Value []float64 + type TicketsDetails []*TicketDetails + type TrimmedTx struct + Expiry uint32 + Locktime uint32 + TxID string + Version int32 + Vin []dcrjson.Vin + Vout []Vout + type Tx struct + Block *BlockID + Confirmations int64 + type TxIn struct + BlockHeight uint32 + BlockIndex uint32 + PreviousOutPoint OutPoint + Sequence uint32 + SignatureScript string + ValueIn float64 + type TxOut struct + Addresses []string + PkScript string + Value float64 + Version uint16 + type TxRawWithTxType struct + TxType string + type TxRawWithVoteInfo struct + VoteInfo VoteInfo + type TxShort struct + Expiry uint32 + Locktime uint32 + Size int32 + TxID string + Version int32 + Vin []dcrjson.Vin + Vout []Vout + type VinPrevOut struct + AmountIn *float64 + BlockHeight *uint32 + BlockIndex *uint32 + Coinbase string + PrevOut *PrevOut + ScriptSig *ScriptSig + Sequence uint32 + Stakebase string + Tree int8 + Txid string + Vout uint32 + type VoteInfo struct + Bits uint16 + Choices []*txhelpers.VoteChoice + Validation BlockValidation + Version uint32 + type Vout struct + N uint32 + ScriptPubKeyDecoded ScriptPubKey + Value float64 + Version uint16 + type VoutHexScript struct + N uint32 + ScriptPubKeyHex string + Value float64 + Version uint16 + type VoutMined struct + BestBlock string + Coinbase bool + Confirmations int64