func hexToBytes(s string) []byte {
	b, _ := hex.DecodeString(s)
	return b
}
hexToBytes converts a hex string to bytes, without returning any errors.
package ticketdb
import (
	"bytes"
	"encoding/hex"
	"os"
	"path/filepath"
	"reflect"
	"testing"
	"time"
	"github.com/HcashOrg/hcashd/blockchain/stake/internal/dbnamespace"
	"github.com/HcashOrg/hcashd/blockchain/stake/internal/tickettreap"
	"github.com/HcashOrg/hcashd/chaincfg"
	"github.com/HcashOrg/hcashd/chaincfg/chainhash"
	"github.com/HcashOrg/hcashd/database"
	_ "github.com/HcashOrg/hcashd/database/ffldb"
)
const (
	testDbType = "ffldb"
	testDbRoot = "testdbs"
)