Skip to content
Snippets Groups Projects

Modify send code to use a debug tag that includes a msgDigest. This is set by...

Merged Richard T. Carback III requested to merge channelLogging into project/Channels
All threads resolved!
Files
10
+ 11
6
@@ -10,6 +10,9 @@ package bindings
@@ -10,6 +10,9 @@ package bindings
import (
import (
"crypto/ed25519"
"crypto/ed25519"
"encoding/json"
"encoding/json"
 
"sync"
 
"time"
 
"github.com/pkg/errors"
"github.com/pkg/errors"
"gitlab.com/elixxir/client/channels"
"gitlab.com/elixxir/client/channels"
"gitlab.com/elixxir/client/cmix/rounds"
"gitlab.com/elixxir/client/cmix/rounds"
@@ -21,8 +24,6 @@ import (
@@ -21,8 +24,6 @@ import (
"gitlab.com/xx_network/primitives/id"
"gitlab.com/xx_network/primitives/id"
"gitlab.com/xx_network/primitives/id/ephemeral"
"gitlab.com/xx_network/primitives/id/ephemeral"
"gitlab.com/xx_network/primitives/netTime"
"gitlab.com/xx_network/primitives/netTime"
"sync"
"time"
)
)
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
@@ -805,10 +806,12 @@ func (cm *ChannelsManager) SendGeneric(marshalledChanId []byte,
@@ -805,10 +806,12 @@ func (cm *ChannelsManager) SendGeneric(marshalledChanId []byte,
return nil, err
return nil, err
}
}
 
msgTy := channels.MessageType(messageType)
 
// Send message
// Send message
chanMsgId, rnd, ephId, err := cm.api.SendGeneric(chanId,
chanMsgId, rnd, ephId, err := cm.api.SendGeneric(chanId,
channels.MessageType(messageType), message,
msgTy, message, time.Duration(leaseTimeMS),
time.Duration(leaseTimeMS), params.CMIX)
params.CMIX)
if err != nil {
if err != nil {
return nil, err
return nil, err
}
}
@@ -859,10 +862,12 @@ func (cm *ChannelsManager) SendAdminGeneric(adminPrivateKey,
@@ -859,10 +862,12 @@ func (cm *ChannelsManager) SendAdminGeneric(adminPrivateKey,
return nil, err
return nil, err
}
}
 
msgTy := channels.MessageType(messageType)
 
// Send admin message
// Send admin message
chanMsgId, rnd, ephId, err := cm.api.SendAdminGeneric(rsaPrivKey,
chanMsgId, rnd, ephId, err := cm.api.SendAdminGeneric(rsaPrivKey,
chanId, channels.MessageType(messageType), message,
chanId, msgTy, message, time.Duration(leaseTimeMS),
time.Duration(leaseTimeMS), params.CMIX)
params.CMIX)
// Construct send report
// Construct send report
return constructChannelSendReport(chanMsgId, rnd.ID, ephId)
return constructChannelSendReport(chanMsgId, rnd.ID, ephId)
Loading