func (server *OpencxServer) ingestChannelConfirm(state *qln.StatCom, pubkey *koblitz.PublicKey, coinType uint32) (err error) {
	logging.Infof("Confirmed channel from %x to give me %d of cointype %d\n", pubkey.SerializeCompressed(), state.MyAmt, coinType)

	var param *coinparam.Params
	if param, err = util.GetParamFromHDCoinType(coinType); err != nil {
		return
	}

	logging.Infof("Confirmed channel from pubkey %x\n", pubkey.SerializeCompressed())
	server.LockIngests()

	if err = server.OpencxDB.AddToBalance(pubkey, uint64(state.MyAmt), param); err != nil {
		return
	}

	server.UnlockIngests()

	return
}
// ingestChannelConfirm changes the user's balance to reflect that a confirmation of a channel happened
ingestChannelConfirm changes the user's balance to reflect that a confirmation of a channel happened
// ingestChannelConfirm changes the user ' s balance to reflect that a confirmation of a channel happened
func (server *OpencxServer) ingestChannelConfirm(state *qln.StatCom, pubkey *koblitz.PublicKey, coinType uint32) (err error) {
	logging.Infof("Confirmed channel from %x to give me %d of cointype %d\n", pubkey.SerializeCompressed(), state.MyAmt, coinType)
	var param *coinparam.Params
	if param, err = util.GetParamFromHDCoinType(coinType); err != nil {
		return
	}
	logging.Infof("Confirmed channel from pubkey %x\n", pubkey.SerializeCompressed())
	server.LockIngests()
	if err = server.OpencxDB.AddToBalance(pubkey, uint64(state.MyAmt), param); err != nil {
		return
	}
	server.UnlockIngests()
	return
}
func ( server * OpencxServer ) ingestChannelConfirm ( state * qln . StatCom , pubkey * koblitz . PublicKey , coinType uint32 ) ( err error ) { logging . Infof ( " \n " , pubkey . SerializeCompressed ( ) , state . MyAmt , coinType ) var param * coinparam . Params if param , err = util . GetParamFromHDCoinType ( coinType ) ; err != nil { return } logging . Infof ( " \n " , pubkey . SerializeCompressed ( ) ) server . LockIngests ( ) if err = server . OpencxDB . AddToBalance ( pubkey , uint64 ( state . MyAmt ) , param ) ; err != nil { return } server . UnlockIngests ( ) return }
ingestChannelConfirm changes the user's balance to reflect that a confirmation of a channel happened
ingestChannelConfirm changes the user ' s balance to reflect that a confirmation of a channel happened