utxonursery_test: properly print error msg during init failure
This commit is contained in:
parent
d2e5494ef3
commit
0dcb620194
@ -4,6 +4,7 @@ package main
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
|
"fmt"
|
||||||
"reflect"
|
"reflect"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
@ -273,11 +274,12 @@ var (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
// Finish initializing our test vectors by parsing the desired public keys and
|
||||||
|
// properly populating the sign descriptors of all baby and kid outputs.
|
||||||
for i := range signDescriptors {
|
for i := range signDescriptors {
|
||||||
|
|
||||||
pk, err := btcec.ParsePubKey(keys[i], btcec.S256())
|
pk, err := btcec.ParsePubKey(keys[i], btcec.S256())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic("unable to parse pub key: %v")
|
panic(fmt.Sprintf("unable to parse pub key during init: %v", err))
|
||||||
}
|
}
|
||||||
signDescriptors[i].PubKey = pk
|
signDescriptors[i].PubKey = pk
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user