Browse Source

format node_key output

pull/8098/head
mobus 3 years ago
parent
commit
e514c147fc
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      types/node_key.go

+ 1
- 1
types/node_key.go View File

@ -58,7 +58,7 @@ func (nk NodeKey) PubKey() crypto.PubKey {
// SaveAs persists the NodeKey to filePath. // SaveAs persists the NodeKey to filePath.
func (nk NodeKey) SaveAs(filePath string) error { func (nk NodeKey) SaveAs(filePath string) error {
jsonBytes, err := json.Marshal(nk)
jsonBytes, err := json.MarshalIndent(nk, "", " ")
if err != nil { if err != nil {
return err return err
} }


Loading…
Cancel
Save