func (server *OpencxServer) ingestChannelPush(pushAmt uint64, pubkey *koblitz.PublicKey, coinType uint32) (err error) {
	logging.Infof("Confirmed push from %x to give me %d of cointype %d\n", pubkey.SerializeCompressed(), pushAmt, 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, pushAmt, param); err != nil {
		return
	}

	server.UnlockIngests()

	return
}
// ingestChannelPush changes the user's balance to reflect that a confirmation of a channel happened
ingestChannelPush changes the user's balance to reflect that a confirmation of a channel happened
// ingestChannelPush changes the user ' s balance to reflect that a confirmation of a channel happened
func (server *OpencxServer) ingestChannelPush(pushAmt uint64, pubkey *koblitz.PublicKey, coinType uint32) (err error) {
	logging.Infof("Confirmed push from %x to give me %d of cointype %d\n", pubkey.SerializeCompressed(), pushAmt, 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, pushAmt, param); err != nil {
		return
	}
	server.UnlockIngests()
	return
}
func ( server * OpencxServer ) ingestChannelPush ( pushAmt uint64 , pubkey * koblitz . PublicKey , coinType uint32 ) ( err error ) { logging . Infof ( " \n " , pubkey . SerializeCompressed ( ) , pushAmt , 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 , pushAmt , param ) ; err != nil { return } server . UnlockIngests ( ) return }
ingestChannelPush changes the user's balance to reflect that a confirmation of a channel happened
ingestChannelPush changes the user ' s balance to reflect that a confirmation of a channel happened