func approvesParent(block *hcashutil.Block) bool {
	return hcashutil.IsFlagSet16(block.MsgBlock().Header.VoteBits,
		hcashutil.BlockValid)
}
approvesParent returns whether or not the vote bits in the header of the
passed block indicate the regular transaction tree of the parent block should
be considered valid.
package indexers
import (
	"encoding/binary"
	"github.com/HcashOrg/hcashd/blockchain"
	"github.com/HcashOrg/hcashd/database"
	"github.com/HcashOrg/hcashutil"
)
var (
	byteOrder = binary.LittleEndian
)
type NeedsInputser interface {
	NeedsInputs() bool
}
type Indexer interface {
	Key() []byte
	Name() string
	Create(dbTx database.Tx) error
	Init() error
	ConnectBlock(dbTx database.Tx, block, parent *hcashutil.Block, view *blockchain.UtxoViewpoint) error
	DisconnectBlock(dbTx database.Tx, block, parent *hcashutil.Block, view *blockchain.UtxoViewpoint) error
}
type AssertError string
func (e AssertError) Error() string {
	return "assertion failed: " + string(e)
}
type errDeserialize string
func (e errDeserialize) Error() string {
	return string(e)
}
func isDeserializeErr(err error) bool {
	_, ok := err.(errDeserialize)
	return ok
}
type internalBucket interface {
	Get(key []byte) []byte
	Put(key []byte, value []byte) error
	Delete(key []byte) error
}