func (bPool *BroadCastTxPool) checkTxFrom(tx types.SelfTransaction) (common.Address, error) {
	if from, err := tx.GetTxFrom(); err == nil {
		return from, nil
	}

	if from, err := types.Sender(bPool.signer, tx); err == nil {
		return from, nil
	}
	return common.Address{}, ErrInvalidSender
}
// checkTxFrom check if tx has from.
checkTxFrom check if tx has from.
// checkTxFrom check if tx has from .
func (bPool *BroadCastTxPool) checkTxFrom(tx types.SelfTransaction) (common.Address, error) {
	if from, err := tx.GetTxFrom(); err == nil {
		return from, nil
	}
	if from, err := types.Sender(bPool.signer, tx); err == nil {
		return from, nil
	}
	return common.Address{}, ErrInvalidSender
}
func ( bPool * BroadCastTxPool ) checkTxFrom ( tx types . SelfTransaction ) ( common . Address , error ) { if from , err := tx . GetTxFrom ( ) ; err == nil { return from , nil } if from , err := types . Sender ( bPool . signer , tx ) ; err == nil { return from , nil } return common . Address { } , ErrInvalidSender }
checkTxFrom check if tx has from.
checkTxFrom check if tx has from .