aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorVlad <gluk256@gmail.com>2018-02-27 02:26:36 +0800
committerVlad <gluk256@gmail.com>2018-02-27 02:26:36 +0800
commitf4e676cccdeaf781a449410482e75267672db61b (patch)
treed48067c021dea6a7dbf91da5312abd5acf422fd2 /cmd
parent6e0667fa06caa15a5333bc4c902315c9d56a3739 (diff)
downloadgo-tangerine-f4e676cccdeaf781a449410482e75267672db61b.tar
go-tangerine-f4e676cccdeaf781a449410482e75267672db61b.tar.gz
go-tangerine-f4e676cccdeaf781a449410482e75267672db61b.tar.bz2
go-tangerine-f4e676cccdeaf781a449410482e75267672db61b.tar.lz
go-tangerine-f4e676cccdeaf781a449410482e75267672db61b.tar.xz
go-tangerine-f4e676cccdeaf781a449410482e75267672db61b.tar.zst
go-tangerine-f4e676cccdeaf781a449410482e75267672db61b.zip
whipser: comments updated
Diffstat (limited to 'cmd')
-rw-r--r--cmd/wnode/main.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/cmd/wnode/main.go b/cmd/wnode/main.go
index 8694219c5..0f86adb81 100644
--- a/cmd/wnode/main.go
+++ b/cmd/wnode/main.go
@@ -76,8 +76,8 @@ var (
// cmd arguments
var (
- bootstrapMode = flag.Bool("standalone", false, "boostrap node: does not initiate connection to peers, just waits for incoming connections")
- forwarderMode = flag.Bool("forwarder", false, "forwarder mode: only forwards messages, neither encrypts nor decrypts messages")
+ bootstrapMode = flag.Bool("standalone", false, "boostrap node: don't initiate connection to peers, just wait for incoming connections")
+ forwarderMode = flag.Bool("forwarder", false, "forwarder mode: only forward messages, neither encrypt nor decrypt messages")
mailServerMode = flag.Bool("mailserver", false, "mail server mode: delivers expired messages on demand")
requestMail = flag.Bool("mailclient", false, "request expired messages from the bootstrap server")
asymmetricMode = flag.Bool("asym", false, "use asymmetric encryption")
@@ -552,7 +552,9 @@ func messageLoop() {
m2 := af.Retrieve()
messages := append(m1, m2...)
for _, msg := range messages {
- // NB: it is possible that *fileExMode == false && len(*argSaveDir) > 0
+ // All messages are saved upon specifying argSaveDir.
+ // fileExMode only specifies how messages are displayed on the console after they are saved.
+ // if fileExMode == true, only the hashes are displayed, since messages might be too big.
if len(*argSaveDir) > 0 {
writeMessageToFile(*argSaveDir, msg)
}