diff --git a/channeldb/db.go b/channeldb/db.go index b1e202c73..a1979b7d0 100644 --- a/channeldb/db.go +++ b/channeldb/db.go @@ -1254,11 +1254,13 @@ func (c *ChannelStateDB) GetChannelOpeningState(outPoint []byte) ([]byte, error) return ErrChannelNotFound } - serializedState = bucket.Get(outPoint) - if serializedState == nil { + stateBytes := bucket.Get(outPoint) + if stateBytes == nil { return ErrChannelNotFound } + serializedState = append(serializedState, stateBytes...) + return nil }, func() { serializedState = nil