mirror of
https://github.com/arnaucube/go-dvote.git
synced 2026-02-28 05:26:46 +01:00
psstest: add pubkey in message
This commit is contained in:
@@ -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)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user