node/cmd: output hex bytes for VAA lookup
Change-Id: I1ade7483679eb035695b3b77b8b95243d2174b86
This commit is contained in:
parent
9cc37e3923
commit
b860c2b00e
|
@ -2,6 +2,7 @@ package guardiand
|
|||
|
||||
import (
|
||||
"context"
|
||||
"encoding/hex"
|
||||
"fmt"
|
||||
publicrpcv1 "github.com/certusone/wormhole/node/pkg/proto/publicrpc/v1"
|
||||
"github.com/certusone/wormhole/node/pkg/vaa"
|
||||
|
@ -203,5 +204,6 @@ func runDumpVAAByMessageID(cmd *cobra.Command, args []string) {
|
|||
log.Fatalf("failed to decode VAA: %v", err)
|
||||
}
|
||||
|
||||
log.Printf("VAA with digest %s: %+v", v.HexDigest(), spew.Sdump(v))
|
||||
log.Printf("VAA with digest %s: %+v\n", v.HexDigest(), spew.Sdump(v))
|
||||
fmt.Printf("Bytes:\n%s\n", hex.EncodeToString(resp.VaaBytes))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue