Skip to content

Commit

Permalink
Further lowercase outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
hannemennah committed Mar 21, 2017
1 parent 06ba27c commit 3751768
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions common/directoryBlock/directoryBlock.go
Expand Up @@ -17,13 +17,13 @@ import (
var _ = fmt.Print

type DirectoryBlock struct {
//Marshalized
Header interfaces.IDirectoryBlockHeader `json:"header"`
DBEntries []interfaces.IDBEntry `json:"dbentries"`

//Not Marshalized
DBHash interfaces.IHash `json:"dbhash"`
KeyMR interfaces.IHash `json:"keymr"`

//Marshalized
Header interfaces.IDirectoryBlockHeader `json:"header"`
DBEntries []interfaces.IDBEntry `json:"dbentries"`
}

var _ interfaces.Printable = (*DirectoryBlock)(nil)
Expand Down Expand Up @@ -199,13 +199,13 @@ func (e *DirectoryBlock) String() string {
var out primitives.Buffer

kmr := e.GetKeyMR()
out.WriteString(fmt.Sprintf("%20s %v\n", "KeyMR:", kmr.String()))
out.WriteString(fmt.Sprintf("%20s %v\n", "keymr:", kmr.String()))

kmr = e.BodyKeyMR()
out.WriteString(fmt.Sprintf("%20s %v\n", "BodyMR:", kmr.String()))
out.WriteString(fmt.Sprintf("%20s %v\n", "bodymr:", kmr.String()))

fh := e.GetFullHash()
out.WriteString(fmt.Sprintf("%20s %v\n", "FullHash:", fh.String()))
out.WriteString(fmt.Sprintf("%20s %v\n", "fullhash:", fh.String()))

out.WriteString(e.GetHeader().String())
out.WriteString("entries: \n")
Expand Down
4 changes: 2 additions & 2 deletions common/directoryBlock/directoryBlockEntry.go
Expand Up @@ -103,7 +103,7 @@ func (e *DBEntry) JSONString() (string, error) {

func (e *DBEntry) String() string {
var out primitives.Buffer
out.WriteString("ChainID: " + e.GetChainID().String() + "\n")
out.WriteString(" KeyMR: " + e.GetKeyMR().String() + "\n")
out.WriteString("chainid: " + e.GetChainID().String() + "\n")
out.WriteString(" keymr: " + e.GetKeyMR().String() + "\n")
return (string)(out.DeepCopyBytes())
}

0 comments on commit 3751768

Please sign in to comment.