funding: properly log pubkey of peer within handleInitFundingMsg

Before this commit, we would log the struct of the pubkey, rather than
the serialized compressed version.
This commit is contained in:
Olaoluwa Osuntokun 2018-08-15 21:41:48 -07:00
parent 4731e1a3e2
commit bd62ef6411
No known key found for this signature in database
GPG Key ID: 964EA263DD637C21

View File

@ -2573,8 +2573,9 @@ func (f *fundingManager) handleInitFundingMsg(msg *initFundingMsg) {
}
fndgLog.Infof("Initiating fundingRequest(localAmt=%v, remoteAmt=%v, "+
"capacity=%v, chainhash=%v, addr=%v, dustLimit=%v)", localAmt,
msg.pushAmt, capacity, msg.chainHash, peerKey, ourDustLimit)
"capacity=%v, chainhash=%v, peer=%x, dustLimit=%v)", localAmt,
msg.pushAmt, capacity, msg.chainHash, peerKey.SerializeCompressed(),
ourDustLimit)
// First, we'll query the fee estimator for a fee that should get the
// commitment transaction confirmed by the next few blocks (conf target