rpc: properly set output index in OpenChannelSync resp

Fixes #2219
This commit is contained in:
Olaoluwa Osuntokun 2018-11-25 21:12:38 -06:00
parent 42c4597921
commit a1c39af313
No known key found for this signature in database
GPG Key ID: CE58F7F8E20FD9A2

View File

@ -1027,6 +1027,7 @@ func (r *rpcServer) OpenChannelSync(ctx context.Context,
FundingTxid: &lnrpc.ChannelPoint_FundingTxidBytes{
FundingTxidBytes: chanUpdate.Txid,
},
OutputIndex: chanUpdate.OutputIndex,
}, nil
case <-r.quit:
return nil, nil