node/cmd: output hex bytes for VAA lookup

Change-Id: I1ade7483679eb035695b3b77b8b95243d2174b86
This commit is contained in:
Leo 2021-11-01 17:17:02 +01:00 committed by Leopold Schabel
parent 9cc37e3923
commit b860c2b00e
1 changed files with 3 additions and 1 deletions

View File

@ -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))
}