aboutsummaryrefslogtreecommitdiffstats
path: root/core/consensus.go
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2018-10-20 19:12:39 +0800
committerGitHub <noreply@github.com>2018-10-20 19:12:39 +0800
commitdae117690c0bf58db3f86fe675cf827c90cce7e6 (patch)
tree4b4675804f0fc93d58fd31462f2cc3c623853299 /core/consensus.go
parenta7aa061724d5bac52da2d473bbd6f7225716b943 (diff)
downloaddexon-consensus-dae117690c0bf58db3f86fe675cf827c90cce7e6.tar
dexon-consensus-dae117690c0bf58db3f86fe675cf827c90cce7e6.tar.gz
dexon-consensus-dae117690c0bf58db3f86fe675cf827c90cce7e6.tar.bz2
dexon-consensus-dae117690c0bf58db3f86fe675cf827c90cce7e6.tar.lz
dexon-consensus-dae117690c0bf58db3f86fe675cf827c90cce7e6.tar.xz
dexon-consensus-dae117690c0bf58db3f86fe675cf827c90cce7e6.tar.zst
dexon-consensus-dae117690c0bf58db3f86fe675cf827c90cce7e6.zip
core: fix logging for SendDKGPrivateShare (#234)
Diffstat (limited to 'core/consensus.go')
-rw-r--r--core/consensus.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/consensus.go b/core/consensus.go
index bdd35a2..478aedb 100644
--- a/core/consensus.go
+++ b/core/consensus.go
@@ -19,6 +19,7 @@ package core
import (
"context"
+ "encoding/hex"
"fmt"
"sync"
"time"
@@ -170,7 +171,7 @@ func (recv *consensusDKGReceiver) ProposeDKGPrivateShare(
return
}
recv.logger.Debug("Calling Network.SendDKGPrivateShare",
- "receiver", string(receiverPubKey.Bytes()))
+ "receiver", hex.EncodeToString(receiverPubKey.Bytes()))
recv.network.SendDKGPrivateShare(receiverPubKey, prv)
}