Skip to content

Commit

Permalink
print message for milestone id
Browse files Browse the repository at this point in the history
  • Loading branch information
galrogo committed Apr 1, 2021
1 parent 058419a commit e48c9da
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion go-tests/same_index_milestone/same_index.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,8 @@ func sendMilestone(parent *iota.MessageID, milestonePublicKey iota.MilestonePubl
log.Print("The merkle root is ", hex.EncodeToString(proof[:]))
milestone := CreateSignedMilestone(index, uint64(time.Now().Unix()), parents, proof, []iota.MilestonePublicKey{milestonePublicKey},
nil, keyMap)
SendMilestone(nodeAPI, &info.NetworkID, parents, milestone)
message := SendMilestone(nodeAPI, &info.NetworkID, parents, milestone)
id, err := message.ID()
Must(err)
log.Print("sent milestone ", hex.EncodeToString(id[:]))
}

0 comments on commit e48c9da

Please sign in to comment.