diff --git a/cmd/root.go b/cmd/root.go index bb3796df17717a773a4d2dee01b45f329895d842..30439c761349fc2d8a46c6a0e55ab4f6d557e723 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -696,8 +696,12 @@ func askToCreateChannel(recipientID *id.ID) bool { } } +// this the the nodepad used for round logging. var roundsNotepad *jww.Notepad +// initRoundLog creates the log output for round tracking. In debug mode, +// the client will keep track of all rounds it evaluates if it has +// messages in, and then will dump them to this log on client exit func initRoundLog(logPath string) { parts := strings.Split(logPath,".") path := parts[0] + "-rounds." + parts[1] diff --git a/network/gateway/sender.go b/network/gateway/sender.go index 9abb88ac3f653b415485f2e38324708d99b8bb2b..1ae30ccea55592574e0aa9813c0b2af6ed185d55 100644 --- a/network/gateway/sender.go +++ b/network/gateway/sender.go @@ -168,11 +168,4 @@ func (s *Sender) SendToPreferred(targets []*id.ID, } return nil, errors.Errorf("Unable to send to any preferred") -} - - -func (s *Sender)sendHelper(target []*id.ID, - sendFunc func(host *connect.Host, target *id.ID) (interface{}, error), - stop *stoppable.Single){ - -} +} \ No newline at end of file diff --git a/network/roundTracking.go b/network/roundTracking.go index 650747e1c8ff5145f597eb909812bbeafef9fa38..cb56aa8d85eea491bb09407327c0f0cb43ebde11 100644 --- a/network/roundTracking.go +++ b/network/roundTracking.go @@ -4,6 +4,11 @@ // All rights reserved. / //////////////////////////////////////////////////////////////////////////////// +// this is an in memory track of rounds that have been processed in this run of the +// xxdk. It only is enabled when loglevel is debug or higher. It will accumulate all +// rounds and then dump on exist. Is only enabled when run though the command line +// interface unless enabled explicitly in code. + package network import (