Skip to content

Commit

Permalink
cleaned up printouts
Browse files Browse the repository at this point in the history
  • Loading branch information
carryforward committed Apr 14, 2017
1 parent fb78162 commit 8431b64
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions state/state.go
Expand Up @@ -935,12 +935,13 @@ func (s *State) LoadDBState(dbheight uint32) (interfaces.IMsg, error) {
interpretationForm := "January 2, 2006"
t, _ := time.Parse(interpretationForm, dateOfBalances)
//fmt.Println(t.Unix())

//fmt.Printf("%v\n", dblk.GetHeader().GetTimestamp().GetTimeSeconds())
fmt.Printf("%v\n", dblk.GetHeader().GetTimestamp())
//fmt.Printf("%v\n", dblk.GetHeader().GetTimestamp())

if dblk.GetHeader().GetTimestamp().GetTimeSeconds() > t.Unix() {
return nil, nil
fmt.Printf("stopped at block %v with date %s\n", dbheight, dateOfBalances)
return nil, nil
}

if dblk != nil && err == nil && dbheight > 0 {
Expand Down

0 comments on commit 8431b64

Please sign in to comment.