psstest: add pubkey in message

This commit is contained in:
p4u
2019-03-13 15:35:00 +01:00
parent f83815a94a
commit 90182527ec

View File

@@ -53,7 +53,7 @@ func main() {
for { for {
fmt.Printf("-> Sending %s pss to [%s]\n", kind, key) fmt.Printf("-> Sending %s pss to [%s]\n", kind, key)
currentTime := int64(time.Now().Unix()) currentTime := int64(time.Now().Unix())
err := sn.PssPub(kind, key, topic, fmt.Sprintf("Hello world from %s at %d", hostname, currentTime), "") err := sn.PssPub(kind, key, topic, fmt.Sprintf("Hello I am %s, time is %d, my pubKey is %s", hostname, currentTime, sn.PssPubKey), "")
log.Info("pss sent", "err", err) log.Info("pss sent", "err", err)
time.Sleep(10 * time.Second) time.Sleep(10 * time.Second)
} }