Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockDAO ¶
type BlockDAO interface { filedao.FileDAO GetActionByActionHash(hash.Hash256, uint64) (action.SealedEnvelope, uint32, error) GetReceiptByActionHash(hash.Hash256, uint64) (*action.Receipt, error) DeleteBlockToTarget(uint64) error }
BlockDAO represents the block data access object
func NewBlockDAO ¶
func NewBlockDAO(indexers []BlockIndexer, cfg db.Config) BlockDAO
NewBlockDAO instantiates a block DAO
func NewBlockDAOInMemForTest ¶
func NewBlockDAOInMemForTest(indexers []BlockIndexer) BlockDAO
NewBlockDAOInMemForTest creates a in-memory block DAO for testing
Click to show internal directories.
Click to hide internal directories.