channeldb: add String() method for EdgePoint

In this commit we fix a minor logging artifact. After the switch to
EdgePoint, the FilteredChainView implementations will try to log the
struct directly, as prior they would have an outpoint object. We restore
this behavior by adding a String() method to EdgePoint which will simply
proxy through to the outpoint so we can log that directly.
This commit is contained in:
Olaoluwa Osuntokun 2018-08-15 21:43:33 -07:00
parent bd62ef6411
commit 90cdc9da8f
No known key found for this signature in database
GPG Key ID: 964EA263DD637C21

@ -2488,6 +2488,12 @@ type EdgePoint struct {
OutPoint wire.OutPoint
}
// String returns a human readable version of the target EdgePoint. We return
// the outpoint directly as it is enough to uniquely identify the edge point.
func (e *EdgePoint) String() string {
return e.OutPoint.String()
}
// ChannelView returns the verifiable edge information for each active channel
// within the known channel graph. The set of UTXO's (along with their scripts)
// returned are the ones that need to be watched on chain to detect channel