package utxostore import ( "encoding/hex" "fmt" "testing" "git.smesh.lol/btcd-lite/internal/wire" ) func mustDecode(t *testing.T, s string) []byte { t.Helper() b, err := hex.DecodeString(s) if err != nil { t.Fatal(err) } return b } // short is an outpoint as its first bytes, for a trace line. func short(op wire.OutPoint) string { return fmt.Sprintf("%x:%d", op.Hash[:2], op.Index) }